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
Normality distribution after mixedDear Statalists, I have been looking for multilevel diagnostics tests (Heteroscedasticity and Resid…
Command for this panel data regressionI have the following regression to run, I am unable to figure out how best to write the command Arra…
Difference between poisson model with exposure and modelling rates implicitly?Dear Statalists, I trying to understand the difference between using an exposure in a poisson model…
The difference in interpretation between country-year fixed effects and seperate country and year dummiesI am trying to expand my knowledge about the different interpretations of combinations of fixed effe…
generate varialbe on the conditionHi , I want to generate the variable only up the condition of another variable here, local 38"phon…
Subscribe to:
Post Comments (Atom)
0 Response to ranking and creating a dummy variable based on quantiles
Post a Comment