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

st: Using by with xtile?

From   Ankur Sarin <[email protected]>
To   [email protected]
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.

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
*   For searches and help try:

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