[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: maximum 3 and minmium 3 values
Hi listers,
I have a dataset with 11 variables for which I want to find out maximum 3
and minimum 3 values for each observation. I am aware that we can use
max(x1, x2..., xn) to get the first maximum or similarly first minimum.
Please advise on how to get subsequent maximum and minimum values.
Thanks,
Shehzad
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/