Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: xtile and "by" question


From   "Clive Nicholas" <clivelists@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: xtile and "by" question
Date   Tue, 8 May 2007 23:22:42 +0100

On 08/05/07, Edgard Alfonso Polanco Aguilar <e-polanc@uniandes.edu.co> wrote:

I'm working with a database which consists on income by month and
region. I need to classify the income by percentiles by city and month
because there's a wide dispersion on income levels across cities, to the
point that the highest income in one is on the median of another. I know
the command of choice for this task is xtile, but Stata doesn't allow me
to use it with "by" like in "by city date: xtile var=income nq(10)". I'm
working in Stata 9 SE for Windows.
-findit xtile2-

--
HTH,
Clive Nicholas
*
*   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