Dear Colleagues,
I thought I understood Stata survival analysis, but I seem to get tripped up by how Stata handles failure times of zero.
According to the stset documentation:
This I get: patients who die before entering the study shouldn't count. However, in practice Stata also excludes patients who have a time of zero. When running stset, these are included in the category "obs. end on or before enter()":
There is also a reference above, as well as throughout the PDF documentation, to (0,t], indicating that times of zero are not included. Bill Gould also used this notation in a Statalist post: http://www.stata.com/statalist/archi.../msg00211.html.
So, while the documentation is clear that times less than zero are excluded, the exclusion of times equal to zero seems to be somewhat less well documented. Is this a problem with the documentation or with my understanding?
From a philosophical standpoint, I also question the exclusion of patients with failure times of zero. Isn't it possible for a patient to enter a study and then die on the same day? Of course one can easily add 1 to all times that legitimately fall into this category, but it doesn't seem like that should be necessary. Or am I missing something?
Thanks for your thoughts.
Regards,
Joe
I thought I understood Stata survival analysis, but I seem to get tripped up by how Stata handles failure times of zero.
According to the stset documentation:
Subjects are exposed at t = time = 0 and later fail. Observations with t = time <0 are ignored because information before becoming at risk is irrelevant.
Code:
stset t, failure(c) failure event: c != 0 & c < . obs. time interval: (0, t] exit on or before: failure ------------------------------------------------------------------------------ 562508 total obs. 60128 obs. end on or before enter()
So, while the documentation is clear that times less than zero are excluded, the exclusion of times equal to zero seems to be somewhat less well documented. Is this a problem with the documentation or with my understanding?
From a philosophical standpoint, I also question the exclusion of patients with failure times of zero. Isn't it possible for a patient to enter a study and then die on the same day? Of course one can easily add 1 to all times that legitimately fall into this category, but it doesn't seem like that should be necessary. Or am I missing something?
Thanks for your thoughts.
Regards,
Joe
Comment