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
3sls reg3Dear Statalists, Can you please help me with the models for panel data with 200 firms of 20 industr…
Data Count & DeleteI am working with WRDS data, dates in one coluumn, companies in another and returns in another. I wa…
Total days on medicine with multiple entries & overlapping datesHi, I am working on a database of medications taken by individuals which I need to summarise & …
Industry Dummy VariablesI am conducting a cross-sectional study on UK firms and I've created an industry variable 'ind1' tha…
Modification of stored estimatesDear StataListers, Is it possible to recode the _at variable in a stored estimate (see below)? I wo…
Subscribe to:
Post Comments (Atom)
0 Response to ranking observations within a group
Post a Comment