Dear all,
I have a panel data (based on firmID and year). For a cerain variable (VAR1) I would like to create quartiles for every years and subsequently create a new variable equal to 1 if the firm was in the first quartile, equal to 2 if the firm was in the second quartile and so on. Is there a feasible way to do this?
I really hope you can help me with this task. I thank you in advance
Related Posts with Panel Data: Dividing a Variable into Quartiles and Creation of Indicator Variable Based on the Quartile
How to multiply a vector of variables with a matrix?Dear all, I am stuck in the following problem when I am doing my master thesis, and I failed to fin…
Creating dummy variable in Panel DataHi, i want to create a dummy variable (group-wise). my data ranges between 2001 to 2010. Features of…
test for structural breaks in panel dataHi everyone, I am looking for a command to test for structural breaks in a panel dataset; in particu…
Converting given dates (in string format) to stata internal format dateHi everyone, Please consider the following data: Code: * Example generated by -dataex-. To install:…
Metaanalysis: Total events and p-value for subgroup and overall estimatesRegarding metaanalyses: 1) Binary outcomes: Is it possible to add overall total events and non-eve…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data: Dividing a Variable into Quartiles and Creation of Indicator Variable Based on the Quartile
Post a Comment