Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72767

Possible failure to censor

$
0
0
Using Stata version 13.1 on Windows 7 I am still battling with Kaplan Meier survival curves. I am performing the same analysis separately on three groups of data. For two of the groups I get the outcome I expect and the data has been censored at 30 days.

Code:
stset lengthofadmission, fail(Outcome) exit(lengthofadmission==30)

     failure event:  Outcome != 0 & Outcome < .
obs. time interval:  (0, lengthofadmission]
 exit on or before:  lengthofadmission==30

------------------------------------------------------------------------------
      650  total observations
      268  event time missing (lengthofadmission>=.)            PROBABLE ERROR
        6  observations end on or before enter()
------------------------------------------------------------------------------
      376  observations remaining, representing
      170  failures in single-record/single-failure data
     7819  total analysis time at risk and under observation
                                              at risk from t =         0
                                   earliest observed entry t =         0
                                        last observed exit t =        30
For one group however, the last observed exit t = 286. I expected this to be 30

Code:
stset lengthofadmission, fail(Outcome) exit(lengthofadmission==30)

     failure event:  Outcome != 0 & Outcome < .
obs. time interval:  (0, lengthofadmission]
 exit on or before:  lengthofadmission==30

------------------------------------------------------------------------------
      339  total observations
      113  event time missing (lengthofadmission>=.)            PROBABLE ERROR
        8  observations end on or before enter()
------------------------------------------------------------------------------
      218  observations remaining, representing
       29  failures in single-record/single-failure data
     8642  total analysis time at risk and under observation
                                              at risk from t =         0
                                   earliest observed entry t =         0
                                        last observed exit t =       286
Please could someone suggest possible reasons why the data has not been censored at 30 days?

Thank you
Claire

Viewing all articles
Browse latest Browse all 72767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>