Survival Analysis using SAS

libname yama "C:\Users\";

data asdf;
set yama.test_data;
OS_length=(OS-toroku_bi)/30.5;
run;

proc lifetest data=asdf;
time OS_length*OS_event(0);
*strata shiken_gun;
run;

proc lifetest data=asdf;
time OS_length*OS_event(0);
strata shiken_gun;
run;

proc lifetest data=asdf;
time OS_length*OS_event(0);
strata PS;
run;

proc phreg data=asdf;
class sex soshiki_gata shiken_gun;
model OS_length*OS_event(0)=shiken_gun sex soshiki_gata PS;
run;

proc phreg data=asdf;
class sex soshiki_gata shiken_gun;
model OS_length*OS_event(0)=shiken_gun;
run;

Leave a Reply