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 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1173 views
  • 0 likes
  • 1 in conversation