01/20141 EPI 5344: Survival Analysis in Epidemiology SAS code and output March 4, 2014 Dr. N. Birkett, Department of Epidemiology & Community Medicine, University of Ottawa
Recidivism data set 432 male prison inmates from the early 1970’s Test of a financial support programme (RCT) Followed for 1 year post-release Data collected weekly Primary outcome –re-arrest (recidivism) 26% re-arrested Data includes –financial aid group –age –race –# prior arrests –parole status 01/20142
3 Obsweekarrestfinageracewexmarparoprio Recidivism data (first 20 cases)
01/20144 ODS GRAPHICS ON; ODS RTF; PROC LIFETEST DATA=allison.recid PLOTS=S(test atrisk) TIMELIST=1 to 52; TIME week*arrest(0); strata fin/tests=all; RUN; ODS RTF close; ODS GRAPHICS OFF;
01/20145
6
7
8
9
10
01/201411
01/ ODS GRAPHICS ON; ODS RTF; PROC LIFETEST DATA=allison.recid; TIME week*arrest(0); STRATA age( ); RUN; ODS RTF close; ODS GRAPHICS OFF;
01/201413
01/201414
01/ ODS GRAPHICS ON; ODS RTF; PROC LIFETEST DATA=allison.recid; TIME week*arrest(0); TEST fin age race wexp mar paro prio; RUN; ODS RTF close; ODS GRAPHICS OFF;
01/201416
01/201417
01/201418