Created
November 25, 2018 18:17
-
-
Save mcohen01/31151f60bf59f0288776dece6f7fa4e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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