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
0 Response to Panel Data: Dividing a Variable into Quartiles and Creation of Indicator Variable Based on the Quartile
Post a Comment