How to output odds ratios in Proc logistic as data set?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

How to output odds ratios in Proc logistic as data set?

Hi,

I am running a logistic regression and want to output  "Odds Ratio Estimates" and "Analysis of Maximum Likelihood Estimates" tables as SAS data set. Because this is easy for me to compare the odds ratios in different regressions. Any help will be appreciated.

 

Thanks much!

 

Accepted Solutions
Solution
‎11-16-2017 07:14 PM
SAS Super FREQ
Posts: 497

Re: How to output odds ratios in Proc logistic as data set?

Posted in reply to chenyiwen1717

Submit the statement:

ods trace on;

Submit your proc code.  Look at the log and find the names of the tables of interest.

 

Specify their names on an ODS OUTPUT statement:

ods output name1=data1 name2=data2;

Substitute the actual names for name1 and name2 and the data set names that you want.

View solution in original post


All Replies
Solution
‎11-16-2017 07:14 PM
SAS Super FREQ
Posts: 497

Re: How to output odds ratios in Proc logistic as data set?

Posted in reply to chenyiwen1717

Submit the statement:

ods trace on;

Submit your proc code.  Look at the log and find the names of the tables of interest.

 

Specify their names on an ODS OUTPUT statement:

ods output name1=data1 name2=data2;

Substitute the actual names for name1 and name2 and the data set names that you want.

Occasional Contributor
Posts: 10

Re: How to output odds ratios in Proc logistic as data set?

Posted in reply to WarrenKuhfeld

Supper! I found what I want now. Thank you so much!

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 333 views
  • 1 like
  • 2 in conversation