Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: Generating a dropout dummy variable?

From   Ignacio Martinez <>
Subject   st: Generating a dropout dummy variable?
Date   Sun, 27 Jun 2010 09:54:00 -0400


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

Thanks for the help


*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index