Try -ssc d rowsort-. I trust you will be able to take it from there...
HTH
Martin
_______________________
----- Original Message -----
From: "Augusto Cadenas" <[email protected]>
To: <[email protected]>
Sent: Wednesday, October 22, 2008 11:54 PM
Subject: st: expanding on -egen rowmin()-
Hello,
I wanted to go beyond the command -egen rowmin(/varlist/)- and create
a new variable containing the second-smallest value in /varlist/,
another one with the third-smallest and so one. Could anyone suggest
me a way to do this? I searched among the extensions of egen, but I
could not find anything suitable.
Thanks in advance,
Augusto
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/