Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Labeling different kinds of missing observations


From   Rituparna Basu <basur@pamfri.org>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Labeling different kinds of missing observations
Date   Thu, 19 Apr 2012 18:10:57 +0000

Hello Statalist scholars,


I am trying to generate a variable that will indicate missing BEFORE FIRST YEAR of OBSERVATION and missing AFTER FIRST YEAR of OBSERVATION.
Here is a sample of the data:

ID  Y1  Y2  Y3  Y4  Y5  Y6  Y7
1    .      .      x    x     x     x   x
2    .     x      .    x     x     x   x
3    .      .      x    x    .     x   x
4    .      x     .    x     x     .   x
5    x     x     .   x      x     x  .

Any advice is very much appreciated!  

Thank you so much for your time!

Regards,

RB

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index