🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-25-2014 01:41 PM
(1010 views)
Hi all,
I'm working with a dataset composed of an ID variable and an amount variable. I need to be able to isolate those participants in the top 1% for highest amounts, but I'm unsure how to do so. That is, I need to know the IDs of those with the top 1% of amount values--not what the 99th percentile amount is.
Any help is much appreciated!
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try this.
proc rank data=have out=want descending groups=100 ties=high;
var amount;
ranks AmountRank;
run;
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try this.
proc rank data=have out=want descending groups=100 ties=high;
var amount;
ranks AmountRank;
run;