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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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