Programming the statistical procedures from SAS

proc logistic output query

Reply
New Contributor
Posts: 4

proc logistic output query

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!!
Trusted Advisor
Posts: 2,114

Re: proc logistic output query

I haven't done it, but the place I would look is in the ODS datasets section of the documentation.
New Contributor
Posts: 2

Re: proc logistic output query

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;
Ask a Question
Discussion stats
  • 2 replies
  • 117 views
  • 0 likes
  • 3 in conversation