BookmarkSubscribeRSS Feed
gmm
Calcite | Level 5 gmm
Calcite | Level 5

Hi, 

 

I am running an ordinal logistic regression. I have my ordinal variable (OHI) and my dependent variable (bone) has 3 levels- femur, ilium, and rib. Since the rib is the reference, I have results for the rib vs femur and rib vs ilium, but I need results for femur vs ilium. How do you code for this? Is a contrast statement appropriate? Here is the code I used to run the ordinal regression in SAS Studio.

proc logistic data=work.bioerosion descending;
class OHI bone;
model OHI=bone;
run;
2 REPLIES 2
Reeza
Super User
Depends on what you're looking for - ODDSRATIO statements are more intuitive than CONTRAST in my experience.
gmm
Calcite | Level 5 gmm
Calcite | Level 5
I am looking to see if there is a difference in the OHI (it assesses bioerosion) between the bones.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 158 views
  • 0 likes
  • 2 in conversation