Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Generating a dropout dummy variable?
From
Ignacio Martinez <[email protected]>
To
[email protected]
Subject
st: Generating a dropout dummy variable?
Date
Sun, 27 Jun 2010 09:54:00 -0400
Hi,
My panel has the following variables: Year (from 2000 to 2008), ID,
Graduated (an indicator =1 if the student graduated that year) .
I want to generate a dropout variable. If I see ID==1111 in year==2000
and 2001 but not after that and graduated !=1 in 2001 I want dropout==1
in 2001 . The only other detail is that if a see someone in 2000 and
then I see him again in 2006 with graduated=1 I don't want dropout =1 in
2000 I want other variable that is break=5 (that student took 5 year of
break)
Thanks for the help
-Ignacio
*
* 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/