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

st: maximum 3 and minmium 3 values

From   Shehzad Ali <>
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.



* For searches and help try:

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