Hello, i am analysing cancer survival data. About 1 third of patients eventually die yet my kaplan meier curve shows 100% dying and i cannot figure out why. i performed an stset with inclusion date (dateincl) date of last news, date of death, and id(but there is 1 line per person).
here is the printout
stset lastnews, origin(dateinc) fail(dateofdeath) scale(365.25) id(N)
id: N
failure event: dateofdeath != 0 & dateofdeath < .
obs. time interval: (lastnews[_n-1], lastnews]
exit on or before: failure
t for analysis: (time-origin)/365.25
origin: time dateincl
------------------------------------------------------------------------------
639 total observations
7 observations end on or before enter()
------------------------------------------------------------------------------
632 observations remaining, representing
632 subjects
238 failures in single-failure-per-subject data
2,522.943 total analysis time at risk and under observation
at risk from t = 0
earliest observed entry t = 0
last observed exit t = 19.9781
yet the sts graph drops all the way to zero
(i tried adding exit (dateoflastnews) it is the same)
where did i go wrong?
thanks
here is the printout
stset lastnews, origin(dateinc) fail(dateofdeath) scale(365.25) id(N)
id: N
failure event: dateofdeath != 0 & dateofdeath < .
obs. time interval: (lastnews[_n-1], lastnews]
exit on or before: failure
t for analysis: (time-origin)/365.25
origin: time dateincl
------------------------------------------------------------------------------
639 total observations
7 observations end on or before enter()
------------------------------------------------------------------------------
632 observations remaining, representing
632 subjects
238 failures in single-failure-per-subject data
2,522.943 total analysis time at risk and under observation
at risk from t = 0
earliest observed entry t = 0
last observed exit t = 19.9781
yet the sts graph drops all the way to zero
(i tried adding exit (dateoflastnews) it is the same)
where did i go wrong?
thanks
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str8 id float(dateincl lastnews dateofdeath death) "20140001" 19758 20528 . . "20050267" 16629 20713 20713 1 "20090043" 18133 21304 21304 1 "20090046" 18088 19194 . . "20110165" 18847 20194 . . "20130011" 19477 20071 . . "20120171" 19178 19470 . . "20150013" 20107 21144 . . "20140513" 19730 21208 . . "20150227" 20354 21075 . . end format %td dateincl
Comment