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

st: Sorting/ranking Q from new user


From   "Eric VonDohlen" <evondohlen@san.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Sorting/ranking Q from new user
Date   Thu, 31 Jul 2003 19:51:49 -0700

I have a continuous variable X, which I would like to:

(a) sort in ascending or descending order;
(b) rank the sorted X into some specified number of groups;
(c) report the mean of X (or some other statistic) by group.

Can anyone help?

Sorry for the elementary query.

Thanks in advance
*
*   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