Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: return the name of the variable of greater rank


From   Jose Maria Pacheco de Souza <jmpsouza@usp.br>
To   statalist@hsphsun2.harvard.edu
Subject   st: return the name of the variable of greater rank
Date   Fri, 12 Jul 2002 17:04:01 -0300

Dear Statalisters:

 I have, say, variables var1 var2 var3 var4 var5 varcompare . I want to
compare var1 var2 var3 var4 var5, to choose the one with the greatest
rank. The  _name_ of the vari with the greater rank should then be the
string "value" of varcompare for each individual.
Is there a command for this?
Thanks,
Jose Maria
 
-- 
Jose Maria Pacheco de Souza, Professor Titular
Departamento de Epidemiologia/Faculdade de Saude Publica, USP
Av. Dr. Arnaldo, 715 
01246-904  -  S. Paulo/SP - Brasil
fones (11)3082-3886; (11)3066-7724; (11)3768-8612; (11)3714-2403
fax (11)3082-2920; (11)3714-2403
www.fsp.usp.br/~jmpsouza
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index