Hello, I have this panel data.
Array
I want to rank the variable (REV_CH_mean5) within each industry-year ( Year IndustryCode). Then, firms (Stkcd) with values of the variable in the highest quintile are assigned a score of 5, those in the next quintile receive a score of 4, etc., and those in the lowest quintile are assigned a score of 1.
Related Posts with ranking and creating a dummy variable based on quantiles
Program a logistics commandHey everyone, I am trying to write a program that will do logistics on different variables. Final s…
Princeton's Event study did not generate the predicted returnHi everyone, I've gone through the Princeton event study stata coding, everything run through (I ha…
rearranging observationsDear Stata Users, I am working with data and I would like to know how to rearrange some variables. …
Multicollinearity in a panel regressionHello, I have downloaded data from the Barro-Lee educational attainment data set and merged this wi…
Interpreting control variables- percentage or percentage point?I am conducting a difference-in-difference regression where the probability of being unemployed is m…
Subscribe to:
Post Comments (Atom)
0 Response to ranking and creating a dummy variable based on quantiles
Post a Comment