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

st: RE: time-dependent covariates (correction)


From   "Jann, Ben" <[email protected]>
To   <[email protected]>
Subject   st: RE: time-dependent covariates (correction)
Date   Fri, 5 Dec 2003 22:36:00 +0100

Some hours ago I wrote:

> Use -stsplit- to split the records at transplantation date 
> (after you have properly -stset- your data):
>
>  . stsplit transplant, after(transplantdate) at(0)
>
> (assuming that 'transplantdate' is in the same units as the timevar in
> -stset- and transplantdate==. for cases without transplantation) 
> 
> The new variable 'transplant' will equal -1 before transplantation and
0
> thereafter.

I made a small but critical mistake: 'transplantdate' should be set to
some value larger than the date of the latest failure or censoring, if
the respondent did not receive transplantation until the end of the
study. If 'transplantdate' is set to missing (as above) these cases will
falsely be assigned to the group which received transplantation.

sorry, ben


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