180 likes | 315 Views
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)
E N D
EPI 5344:Survival Analysis in EpidemiologySAS code and outputMarch 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
Recidivism data (first 20 cases) Obs week arrest fin age race wex mar paro prio 1 20 1 0 27 1 0 0 1 3 2 17 1 0 18 1 0 0 1 8 3 25 1 0 19 0 1 0 1 13 4 52 0 1 23 1 1 1 1 1 5 52 0 0 19 0 1 0 1 3 6 52 0 0 24 1 1 0 0 2 7 23 1 0 25 1 1 1 1 0 8 52 0 1 21 1 1 0 1 4 9 52 0 0 22 1 0 0 0 6 10 52 0 0 20 1 1 0 0 0 11 52 0 1 26 1 0 0 1 3 12 52 0 0 40 1 1 0 0 2 13 37 1 0 17 1 1 0 1 5 14 52 0 0 37 1 1 0 0 2 15 25 1 0 20 1 0 0 1 3 16 46 1 1 22 1 1 0 1 2 17 28 1 0 19 1 0 0 0 7 18 52 0 0 20 1 0 0 0 2 19 52 0 0 25 1 0 0 1 12 20 52 0 0 24 0 1 0 1 1
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;
ODS GRAPHICS ON; ODS RTF; PROC LIFETEST DATA=allison.recid; TIME week*arrest(0); STRATA age(21 24 28); RUN; ODS RTF close; ODS GRAPHICS OFF;
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;