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
Installing package not on SSCI am trying to install the package 'meta'. I have commands in a file I am trying to use where the co…
Excel formatting dimensionsDear All, I am trying to make the Excel file produced with Stata to look exactly as the prototype s…
Creating a Group VariableI want to create groups for propensity score matching. If I want to classify the data into different…
Auto-ARIMA is now available in Stata! The new arimaauto and xtarimau commandsThanks to Kit Baum's relentless work on uploading new packages into the SSC, Stata now has auto-ARIM…
How to select categorical variable in Hoteck method to impute missing dataHello Everyone I am trying to address the missing values of four variables (price) in my research an…
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