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/