BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Descartes
Calcite | Level 5

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;

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

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

View solution in original post

3 REPLIES 3
SteveDenham
Jade | Level 19

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

Descartes
Calcite | Level 5

Thanks Steve! Is there any test I can do on this instrumental variable?

SteveDenham
Jade | Level 19

Well, there should be a Wald chi-square test in the output for PROC PHREG for this variable.

Steve Denham

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2066 views
  • 3 likes
  • 2 in conversation