BookmarkSubscribeRSS Feed
Gowthami99
Fluorite | Level 6
Hi
I’m asked to prepare a strategy such that the value of significant parameters (age,risk,pressure) estimate the odds that the person is a smoker
Risk Age Pressure Smoker
12 57 152 No
24 67 163 Yes
.....so on
6 REPLIES 6
Gowthami99
Fluorite | Level 6
Hi
I’m asked to prepare a strategy such that the value of significant parameters (age,risk,pressure) estimate the odds that the person is a smoker
Risk Age Pressure Smoker
12 57 152 No
24 67 163 Yes
.....so on



Any answer is highly appreciated !!
Thank you
Reeza
Super User

You would need to implement a logistic regression model to get the odds ratio. PROC LOGISTIC is a procedure that can be used to calculate the odds ratio. 

 

Check the fully worked example here - click the link at the top of the page to get the code. Run it, make sure you understand it, then apply to your data. If you have categorical variables keep an eye on the CLASS statement and the design matrix to understand how its dummy coding the variables. 

 


@Gowthami99 wrote:
I didn’t get you

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 6 replies
  • 1456 views
  • 2 likes
  • 4 in conversation