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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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