how can i rank observations within a group? if i use the code: egen rank=group(var1), by(var2). i get an error message saying: egen ... group() may not be combined with by.
is there any other way to get this done?
Related Posts with ranking observations within a group
Crossed random effects model not working after update to Stata/MP 16.1 if sample size exceeds 50 000Dear Statalisters, I've found that a fairly simple crossed random effects multilevel model I estima…
caterpillar plot for multi level analysisHi, I would be grateful for some advice please. I have done a multi level regression analysis. Leve…
'Wrong' sign with fixed effectsHi there, I was hoping to get help regarding a change is signs of a coefficient when using fixed ef…
Setting base level for regression's interaction with continuous variableHello Stata experts! Thanks in advance for reading my post, hope the lockdown is somewhat bearable …
To statistician and Stata developers: Is there a bias in margins command?Hi All, I came across the article below. Appendix 3 (bias in conventional predicted probability for…
Subscribe to:
Post Comments (Atom)
0 Response to ranking observations within a group
Post a Comment