I have tried various configurations of ods statements with proc logistic but I always get too much output.
ods select will give all step results. See code below. Help, there is too much output this way! Thank you. MM
ods select ClassLevelInfo ConvergenceStatus GoodnessOfFit
LackFitChiSq
ParameterEstimates clparmPL clparmWald
OddsRatiosPL OddsRatiosWald
FitStatistics GlobalTests;
proc logistic data=scenic order=data alpha=.05;
model School= Stay Age Risk Culture Chest Beds
Region Census Nurses Facil / selection=stepwise
scale=none aggregate rsquare gof lackfit
clparm=both clodds=both
influence expb;
run; quit;
If what you want is just the set of tables from a particular Step in the model selection process, you can use a WHERE clause to select that Step. Note that you can refer to tables using their Path designation. This is described in more detail in the "Using the Output Delivery System" chapter in the SAS/STAT User's Guide. For example, to display only the results of Step 3, you can use the following statement:
ods select where = (_path_ ? 'Step3');
As always with questions like this, the answer is in the "Details: ODS Table Names" section of the procedure's documentation. In this case, you will find the following line in that section that identifies the name of table that you can use in an ODS SELECT statement to display that table:
ModelBuildingSummary Summary of model building MODEL SELECTION=B | F | S
So, add ModelBuildingSummary in your ODS SELECT statement.
I don't see where you have provided a LOG.
What specifically do you mean by "the last one"?
If what you want is just the set of tables from a particular Step in the model selection process, you can use a WHERE clause to select that Step. Note that you can refer to tables using their Path designation. This is described in more detail in the "Using the Output Delivery System" chapter in the SAS/STAT User's Guide. For example, to display only the results of Step 3, you can use the following statement:
ods select where = (_path_ ? 'Step3');
Do I use this statement once? I have been trying the following. These statements are not working. MM
ods select ClassLevelInfo
ConvergenceStatus where = (_path_ ? 'Step5')
LackFitChiSq ModelBuildingSummary where = (_path_ ? 'Step5')
GoodnessOfFit where = (_path_ ? 'Step5')
ParameterEstimates clparmPL clparmWald
/* OddsRatiosPL OddsRatiosWald */
FitStatistics where = (_path_ ? 'Step5')
GlobalTests where = (_path_ ? 'Step5')
association
EffectPlot influencePlots.'Panel 1' ROCCurve;?
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!
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.