Skip to content

Instantly share code, notes, and snippets.

@mcohen01
Created November 25, 2018 18:17
Show Gist options
  • Save mcohen01/31151f60bf59f0288776dece6f7fa4e9 to your computer and use it in GitHub Desktop.
Save mcohen01/31151f60bf59f0288776dece6f7fa4e9 to your computer and use it in GitHub Desktop.
filename divorce 'divorce.txt';
data divorce;
infile divorce;
input id heduc heblack mixed status time;
run;
proc lifetest data=divorce plots=s graphics;
time time * status(0);
run;
proc lifetest data=divorce plots=s graphics;
time time * status(0);
strata mixed;
run;
ods graphics on;
ods trace on;
proc phreg data=divorce plots(overlay)=survival;
class heduc heblack mixed;
model time * status(0) = heduc heblack mixed;
/*strata heduc;*/
output out=propcheck ressch=schres;
run;
ods trace off;
ods graphics off;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment