DUPLICATE THREAD
Reply to the other thread at https://communities.sas.com/t5/Base-SAS-Programming/How-to-estimate-the-odds-ratio-for-the-given-par...
PROC LOGISTIC can do this.
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
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.