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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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