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

I am trying to run a multi variable logistic regression model predicting departure from position (yes/no) using perceived culture around alcohol as the main predictor with sex, age, race, hazardous alcohol use, and job satisfaction as covariates. I was interested in analyzing hazardous alcohol use as a moderator and found evidence that there is an interaction between alcohol use and perceived culture.

My question is, when I ran the regression the output did not show the ORs for hazardous alcohol use or perceived culture (scored from 0-4 based on how many items endorsed). Is there an option I am missing to get those estimates? (Code below)


Proc logistic data=c_final:
Class sex agecat race hazardousalc jobsat/param=ref; (I specified the reference groups in my code but omitted them for a reason on this forum)
Model departure = sex agecat race hazardousalc jobsat alcoholculture_score hazardousalc*alcoholculture_score/expb;
Run;

1 ACCEPTED SOLUTION
3 REPLIES 3
christinef
Calcite | Level 5
This worked with oddsratio hazardousalc/at (alcoholculture_score 0 1 2 3 4);

Thank you!
StatDave
SAS Super FREQ

As discussed in this note, odds ratios are not automatically provided for variables involved in interactions. It shows several ways to obtain odds ratios.

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

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2017 views
  • 0 likes
  • 3 in conversation