Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: time varying variable in Cox regression


From   "raoul reulen" <[email protected]>
To   [email protected]
Subject   Re: st: time varying variable in Cox regression
Date   Wed, 28 Mar 2007 13:03:48 +0100

Thanks Svend,

Could I also set the period between the first birth and the third to
missing? So I would know that up to the first birth (for which the dob
is known) the subject didn't have any children. Then set the period
between the first and the third birth to missing because I don't know
whether they had one or two children in that period
and then when the third child is born set it to 3 (so I would stsplit twice)?

period up to first birth: child_num=0
period between first birth and third child_num=.
period after third birth: child_num=3

By doing this the subject will at least contribute some person-years
up to the first birth and after the third birth. I guess I could also
add 9 months to the first birth, because I'm pretty sure that the
subject didn't give birth in that period. However, I 'm not sure
whether the above method is ok (though It would make it more complex).

Thanks

Raoul
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index