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/