Statalist The Stata Listserver


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

st: xtile and "by" question


From   Edgard Alfonso Polanco Aguilar <[email protected]>
To   [email protected]
Subject   st: xtile and "by" question
Date   Tue, 08 May 2007 16:42:58 -0500

Hello everybody,

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.

Thaks!

Edgard

begin:vcard
fn:Edgard Alfonso Polanco Aguilar
n:Polanco Aguilar;Edgard Alfonso
tel;work:339 4949 ext: 2104
tel;cell:316 577 9895
version:2.1
end:vcard




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index