BookmarkSubscribeRSS Feed
citizen
Calcite | Level 5
Hi All,

I am working with Proc Logistic and I am using the Stepwise process. SAS gives a detailed output, among which there is a table titled "Analysis of Maximum Likelihood Estimates" which contains all the variables present in the final model as well as the intercept term in the rows and the estimated coefficients, DF, p-values etc. in the columns.

How can I quickly output this information to a SAS dataset? Can anyone tell me which options to invoke in the proc logistic statement or the model statement (or anywhere else)?

Thanks a lot in advance!!
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
I haven't done it, but the place I would look is in the ODS datasets section of the documentation.
kmyoung
Calcite | Level 5
I think you can use the ODS TRACE option to get this.

For example -

ods trace on;
proc logistic data=mylib.trials;
...
run;
ods trace off;

Check the log for the output that you want turned into a dataset. It will typically be listed under a path, i.e. Logistic.ParameterEstimates.

Then rerun the proc logistic and use the ODS statement to turn the output into data:

proc logistic data=mylib.trials;
...
ods output Logistic.ParameterEstimates = param_est;
run;

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1352 views
  • 0 likes
  • 3 in conversation