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

st: Using by with xtile?


From   Ankur Sarin <ankursarin@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Using by with xtile?
Date   Mon, 1 Jul 2002 16:35:50 -0700 (PDT)

Hi, I have survey data (weighted) on individuals
within 30 states for 2 years (not the same
individuals). Is there a straight forward way by which
I can create  deciles by each state and
year for a variable. Ultimately I would like a
categorical variable that would, say have a 1 for each
individual in the lowest decile of the state that the
individual belongs to for that particular year and so
on. I don't think pctile and xtile would allow me to
do this by state and year. Thanks for the help.
Regards
                        -Ankur  


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
*
*   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