Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Jennifer L. Milosch" <milosch@umail.ucsb.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Ranking observations of a variable across a set of variables |

Date |
Tue, 01 Nov 2011 20:24:55 -0700 |

Hello,

x1|x2|x3|x4 50|10|30|60 20|60|10|40

-bysort x1 x2 x3 x4: egen rank1=rank(x1)-

rank1|rank2|rank3|rank4 2 |4 |3 |1 3 |1 |4 |2 Any help would be much appreciated. -- Jennifer L. Milosch Ph.D. Candidate Dept of Economics UC Santa Barbara * * 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/

**Follow-Ups**:**Re: st: Ranking observations of a variable across a set of variables***From:*Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com>

- Prev by Date:
**st: RE: RE: Difference Model** - Next by Date:
**st: testing nested logistic model using mi estimate: prefix command** - Previous by thread:
**st: A Problem about Random Effects Negative Binomial Model (xtnbreg)** - Next by thread:
**Re: st: Ranking observations of a variable across a set of variables** - Index(es):