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

st: how to generate lates nonmissing lagged value


From   olena-stavrunova@uiowa.edu
To   statalist@hsphsun2.harvard.edu
Subject   st: how to generate lates nonmissing lagged value
Date   Fri, 4 Jul 2003 12:55:11 -0500

Dear statalist,
I have a panel dataset with missing values and for each individual at each 
time period I need to generate variable V1 which assumes value of 1 if current 
and latest nonmissing lagged value of another variable V2 =1 and is zero or 
missing otheriwse.
Could you, please, give me a hint on how to do this.
Thank you.
Olena Stavrunova


*
*   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