BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
chenyiwen1717
Fluorite | Level 6

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!

 
1 ACCEPTED SOLUTION

Accepted Solutions
WarrenKuhfeld
Ammonite | Level 13

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

2 REPLIES 2
WarrenKuhfeld
Ammonite | Level 13

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.

chenyiwen1717
Fluorite | Level 6

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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2 replies
  • 10431 views
  • 2 likes
  • 2 in conversation