/* Programs for labnote 2 */ /* Prepared by Sheng Luo */ DATA myel; SET "c:\courses\Survival\2006\labs\lab2\myel"; RUN; proc print; run; PROC LIFETEST data=myel; TIME dur*status(0); RUN; /*Write the 95% confidence interval in an output file*/ PROC LIFETEST data=myel outsurv=myoutput; TIME dur*status(0); RUN; /* print out the 95% confidence interval in the output file*/ PROC print data=myoutput; RUN; /*Graph*/ PROC LIFETEST data=myel plots=(s) graphics; TIME dur*status(0); RUN; /*Compare two survival curves between two treatment groups*/ PROC LIFETEST data=myel plots=(s) graphics; TIME dur*status(0); STRATA treat; RUN;