SAS Programming

DATA Step, Macro, Functions and more
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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