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
vce(cluster var1 var2) varlist not allowed r(101)Hi!, I am trying to run fixed effect with two-way clustering. For instance: reghdfe capx x1 x2, abs…
Panel data graphHi. I need help. I want to make a graph with panel data, in which I must include the trend of the c…
calculating the number by comparing this period and previous periodDear All, Suppose that I have this data Code: * Example generated by -dataex-. To install: ssc inst…
Replace if value is a dateHi, I am trying to replace the value of one variable when the condition holds (the condition is that…
keep observations between staryear and endyear.Dear All, I have this dataset, Code: * Example generated by -dataex-. To install: ssc install datae…
Subscribe to:
Post Comments (Atom)
0 Response to ranking observations within a group
Post a Comment