Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ranking observations within a group

    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?

  • #2
    use -egen, rank()- for rankings.

    Comment


    • #3
      thank you!

      Comment

      Working...
      X