Announcement

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

  • Specific percentiles

    Hi!

    I want to look at specific percentiles of the values of certain variable I have in my dataset (in my case is the 20 and the 80). How can I do it? I usually used "sum var1, detail" but it isn't helpful for the percentiles I want.

    Thanks,

    FitzGerlad

  • #2
    You can use the command pctile (help pctile)
    This command is also inside egen if you want to create a variable equal to a specific percentile

    Comment

    Working...
    X