160 likes | 202 Vues
PHREG: semi-parametric LIFETEST: non-parametric LIFEREG: parametric. Why can’t we use PROC LIFETEST to estimate baseline hazard increment?. LIFETEST does not accommodate left censoring. How to use PROC LIFETEST for dataset with left censoring?. Data set: subset of miners cohort data.
E N D
PHREG: semi-parametricLIFETEST: non-parametricLIFEREG: parametric
Why can’t we use PROC LIFETEST to estimate baseline hazard increment?
*---- Non-Parametric using PHREG ----*; • procphregdata=uminers_rs; • model _rstime*_cc(0)= / entrytime=_rsentry rl; • baselineout=outcom cumhaz=cumhaz survival=sur/method=pl; • strata cr500; • run; • procprintdata=outcom; run;
*---- Non-Parametric using LIFETEST ----*; • odsoutput"Product-Limit Estimates"=ple; • proclifetestdata=uminers_rs method=pl; • id record; • time _setno*_cc(0); • strata cr500 _setno; • run; • odsoutputclose; • data ple2;set ple;where survival^=.;run; • *SAS output . for survival if there is no case;
PHREG: LIFETEST:
data ple2;set ple2; • retain survival0 survival1 1;retain cumhazard0 cumhazard1 0; • if cr500=0thendo • survival0=survival*survival0; sur=survival0; • cumhazard0=cumhazard0+failure; cumhazard=cumhazard0; • output; end; • if cr500=1thendo • survival1=survival*survival1; sur=survival1; • cumhazard1=cumhazard1+failure; cumhazard=cumhazard1; • output; end; • run;
PHREG: LIFETEST: (transformed)