Statalist


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

st: Pulling out observations based on a condition


From   Dmitriy Krichevskiy <[email protected]>
To   statalist <[email protected]>
Subject   st: Pulling out observations based on a condition
Date   Wed, 29 Jul 2009 09:28:32 -0400

Dear Statalisters,

I have a panel data set with about 14000 people and 21 time periods. I
wanted to pull out persons who have transitioned from one category of
the same dichotomous variable to another (say from lowest income
quintile to the highest) during one time increment - for the whole
duration on the sample. So, essentially, I need to pull out all the
people that did that transition from first period to second plus from
second to third and so on... I know it is a simple loop but whatever I
do Stata drops all of the observations. Perhaps, I should also mention
that I am new to programing altogether. Thanks for all of your help,
Statalisters definitely  will be thanked in my dissertation.
-- 
Dmitriy Krichevskiy
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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