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

Hi,

I am using the following code:

PROC LOGISTIC DATA=A.DATA_VARCLUS_CORR DESCENDING;

MODEL TARGET=&VARLIST2

/SELECTION=STEPWISE SLS=0.01 SLE=0.01;

RUN;

As a result of the code above, I get an output that includes, among other things, the following:

Analysis of MaximumLikelihood Estimates

                                                  Standard          Wald

        Parameter               DF   Estimate       Error    Chi-Square    Pr > ChiSq

This output is outputted into a window. I would like to have the output into a separate file, in particular fields that I havehighlighted in red.

I tried to use OUTMODEL= option, but that doesnt seem to output what I need.

Thanks for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Add the statement:

ods output ParameterEstimates=myParameterEstimates;

after your model statement. Run the procedure and look into the myParameterEstimates dataset.

PG

PG

View solution in original post

5 REPLIES 5
PGStats
Opal | Level 21

Add the statement:

ods output ParameterEstimates=myParameterEstimates;

after your model statement. Run the procedure and look into the myParameterEstimates dataset.

PG

PG
Danglytics
Calcite | Level 5

Thanks PG for your response.

in the ParameterEstimates statment, my variable names are being truncated, is it possible to set the variable field length to $32, and select based on ProbChiSq = <.0001 ?


Reeza
Super User

Try the namelen= options in proc logistic statement.

ie proc logistic data=have namelen=32

PGStats
Opal | Level 21

You may also add:

ods output ParameterEstimates=myParameterEstimates(where=(ProbChiSq<0.0001));

if you wish to keep only those cases.

PG

PG
Danglytics
Calcite | Level 5

Perfect, thank you both.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 5 replies
  • 1531 views
  • 6 likes
  • 3 in conversation