Dear all,
I want to use an instrumental variable in survival analysis, and I think the PROC SYSLIN is only for linear or logistic regression? Is there command specifically for Cox proportional hazards model?
I am thinking to use below method, is it correct? Thanks for your help!
PROC LOGISTIC DATA= data1;
MODEL GRP = Distance;
OUTPUT OUT = data2
PREDICTED=IV_grp;
RUN;
PROC PHREG DATA =data2;
CLASS AGE RACE INCOME EDUCATION / PARAM=REF REF=First ;
MODEL TIME*Status(0) = IV_grp AGE RACE INCOME EDUCATION ;
RUN;
I think you may want to include the additional variables (AGE RACE INCOME EDUCATION) in the PROC LOGISTIC fit, as distances may cluster somewhat for these variables.
Steve Denham
I think you may want to include the additional variables (AGE RACE INCOME EDUCATION) in the PROC LOGISTIC fit, as distances may cluster somewhat for these variables.
Steve Denham
Thanks Steve! Is there any test I can do on this instrumental variable?
Well, there should be a Wald chi-square test in the output for PROC PHREG for this variable.
Steve Denham
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.