BookmarkSubscribeRSS Feed
slchen
Lapis Lazuli | Level 10

I am running a multinomial logistic regression with proc logistic. The dependent variable is nomial, 0, 1, 2, 3 four categories, the model has four predictors, see Age, Sex, Education and Race, I could use dependent variable=0 as reference, so I could get 1 vs 0, 2 vs 0 and 3 vs 0, but I also want to know how it looks like such as 1 vs 2, 2 vs 3 and 1 vs 3, it is possible to those results by only runing model once with 0 as reference?  Or I have to run model several times with dependent categories as reference? if not for proc logistic, how about proc genmod or other procedures?  Thank you.

1 REPLY 1
SteveDenham
Jade | Level 19

Check out the ODDSRATIO statement.with a DIFF option.  The default is DIFF=ALL which would give you the comparisons you are looking for.

 

Steve Denham

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 1 reply
  • 1731 views
  • 2 likes
  • 2 in conversation