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
Creating a variable as a matrix of five othersHi, My dataset has variables such as province, and five other items (club church library hospital s…
error in reshapingi have the data ----------------------- copy starting from the next line ----------------------- Co…
Entropy BalancingHi everyone, I want to examine the effect of a treatment on an observation group with a Diff-in-Diff…
Why is TFP calculated by prodest+acf+translog much bigger that TFP calculated by prodest+acf?Dear statalists: I want to use prodest to estimate TFP,but my production function is a translog-for…
Using ascol command to calculate weekly returns using CRSP daily returnsI tried to convert daily stock returns to weekly returns for panel data with firm, date, and returns…
Subscribe to:
Post Comments (Atom)
0 Response to ranking observations within a group
Post a Comment