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

Re: st: RE: converting snapshot data into duration format


From   Patricia Vera Rojas <pverarojas@yahoo.es>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: converting snapshot data into duration format
Date   Mon, 23 May 2005 03:04:56 +0200 (CEST)

The problem is that SNAPSPAN generates a missing value in the first observation of the variable
"date0". Then, when I use STSET, this first observatiosn with the missing value is not taken in
account for the survival analysis. By this way, I am losing all the first observations of all the
subjects in my data. Hope you can help me. 

Thanks,
Patricia


--- Nick Cox <n.j.cox@durham.ac.uk> escribió:
> What information are you losing by what Stata does? 
> 
> Nick 
> n.j.cox@durham.ac.uk 
> 
> Patricia Vera Rojas
>  
> > I have:
> > 
> > id    date
> > X   20jan2000
> > X   22jan2000
> > X   24jan2000
> > X   25jan2000
> > 
> > When I SNAPSPAN it, I get:
> > 
> > id    date0      date1
> > X      .       20jan2000
> > X   20jan2000  22jan2000
> > X   22jan2000  24jan2000
> > X   24jan2000  25jan2000
> > 
> > But by this way, when I STSET it, I lose the first 
> > observation (because of the missing), how can I
> > do it?
> 
> *
> *   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/
> 


		
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
*
*   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