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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1375 views
  • 2 likes
  • 2 in conversation