Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: how to group variables into equal number groups


From   Marcello Pagano <pagano@hsph.harvard.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: how to group variables into equal number groups
Date   Tue, 26 Mar 2013 10:43:00 -0400

Try

findit eqprhistogram

it will lead you to Nick Cox's plot of what you are looking for.

m.p.


On 3/26/2013 10:30 AM, Xixi Lin wrote:
Hi,

  I am trying to make independent variables into decile groups, and I
used xtile decile=x1 if Period==`z', nq(10); however, it turns out
that xtile does not make equal number of the 10 groups, is there any
way to force stata to divide them into equal number of obs or almost
equal number of obs?

Thanks,
Xixi Lin
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index