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