BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hpatel3
Obsidian | Level 7

 Hi there,

 

I'm running proc logistic to look at the association between a gender variable (categorical 1: Men | 2: Female) and the outcome Heart Failure (0: No 1: Yes)  I also have the varaible of heart obstruction (0: no obstruction | 1: obstruction).

 

My question is to see if there is an association between heart failure and gender (Females only) in no obstruction patients.

 

I have it as such: 

odds gender.PNG

 

I'm just  wondering if this will give me the most accurate odds ratio, or if i'm using the class and where statement correctly Thanks!

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
You're using the CLASS statement correctly, not sure about the WHERE statement, the syntax is correct. You should check the data is what you want though. I would add an explicit ODDSRATIO statement because I find that easier to interpret, but otherwise looks fine to me.

View solution in original post

1 REPLY 1
Reeza
Super User
You're using the CLASS statement correctly, not sure about the WHERE statement, the syntax is correct. You should check the data is what you want though. I would add an explicit ODDSRATIO statement because I find that easier to interpret, but otherwise looks fine to me.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1699 views
  • 0 likes
  • 2 in conversation