04-17-2014 11:39 AM
i have a variable mktcapitalisation in a dataset
i sorted them and found 4886 observations
proc sort data=us3 out= us4;
how do i keep the top 500?
04-17-2014 11:47 AM
What is your definition of top 500?. You sorted the file. Do you want the first 500 in each sort group? Do you want the top 500 sort groups in terms of frequency or percentage of the total? A proc freq can tell you which sorted values are more frequent than others.
Need further help from the community? Please ask a new question.