Help using Base SAS procedures

Proc Logistic Print only Max Likelihood Results

Accepted Solution Solved
Reply
Contributor
Posts: 39
Accepted Solution

Proc Logistic Print only Max Likelihood Results

Hi,

 

I am running using proc logistic to get a propensity score to then match individuals from groups to create comparison groups. In the proc logistic output I want to ONLY see the Analysis of MLE table because I am eventually only going to export that to Excel.

 

These are the current specifications I have:

 

proc logistic data=test_a descending;

class female;

model test=p_total_ab age65_older female

/ SELECTION=stepwise RISKLIMITS LACKFIT RSQUARE PARMLABEL;

output out=propensity_scores

prob= prob;

run;

 

Again, the question I have is how to isolate the Analysis of MLE table to only output that. I understand noprint doesn't print anything, but I want the MLE table.

 


Accepted Solutions
Solution
‎02-03-2016 11:50 AM
Super User
Posts: 11,343

Re: Proc Logistic Print only Max Likelihood Results

Posted in reply to jacob_klimek

The ODS Select option will select specific output objects.

 

Use:

 

ODS Trace on;

<your procedure code>

ODS Trace off;

 

to identify the output objects created so you you have the Name of the object you want to select.

View solution in original post


All Replies
Solution
‎02-03-2016 11:50 AM
Super User
Posts: 11,343

Re: Proc Logistic Print only Max Likelihood Results

Posted in reply to jacob_klimek

The ODS Select option will select specific output objects.

 

Use:

 

ODS Trace on;

<your procedure code>

ODS Trace off;

 

to identify the output objects created so you you have the Name of the object you want to select.

Trusted Advisor
Posts: 1,117

Re: Proc Logistic Print only Max Likelihood Results

Posted in reply to jacob_klimek

In other words: Just execute the following statement immediately before your PROC LOGISTIC step:

ods select ParameterEstimates;

 

Contributor
Posts: 39

Re: Proc Logistic Print only Max Likelihood Results

[ Edited ]
Posted in reply to FreelanceReinhard

For some reason only the path (Logistic.ParameterEstimates;  ) works, but thanks!

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 268 views
  • 0 likes
  • 3 in conversation