Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: maximum 3 and minmium 3 values


From   Shehzad Ali <[email protected]>
To   [email protected]
Subject   st: maximum 3 and minmium 3 values
Date   19 Jun 2008 11:50:13 +0100

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/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index