BookmarkSubscribeRSS Feed
user1359
Calcite | Level 5

I'm not sure if this is how you analyze confounding with possible interaction (effect modification). The predictor is opioid usage while the outcome variable is prevalence of prior injection drug usage. I am creating my models through logistic regression 

Screen Shot 2022-11-30 at 5.43.37 PM.png

Only confounder in model was SES in model, possible effect modifier was ethnicity. This was the SAS code I used looking at confounding and possible effect modification. 

proc logistic data=work.ex4;
class opioid_use SES eth_2 (ref= '3. Caucasian')/ param=ref;
model ever_inject = opioid_use SES eth_2;
run;

Screen Shot 2022-11-30 at 5.48.24 PM.png

 Based on multivariate logistic model, I don't have effect modification only confounding 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 1093 views
  • 0 likes
  • 1 in conversation