Skip to Main Content

Proc Logistic | SAS Annotated Output

Background

This page shows an example of logistic regression with footnotes explaining the output. The data were collected on 200 high school students, with measurements on various tests, including science, math, reading and social studies. The response variable is high writing test score (honcomp), where a writing score greater than or equal to 60 is considered high, and less than 60 considered low; from which we explore its relationship with gender (female), reading test score (read), and science test score (science). The dataset used in this page can be downloaded from SAS Web Books Regression with SAS.

Model code

data logit;
set "c:\temp\hsb2";
honcomp = (write >= 60);
run;

proc logistic data= logit descending;
model honcomp = female read science;
run;

Annotated Output

Model Information
Data Set WORK.LOGIT
Response Variable honcomp
Number of Response Levels 2
Model binary logit
Optimization Technique Fisher’s scoring
Number of Observations Read 200
Number of Observations Used 200
Response Profile
Ordered
Value
honcomp Total
Frequency
1 1 53
2 0 147
Probability modeled is honcomp=1.

Model Information

Number of Observations Read

Response Profile

Frequencies of outcome values. Columns are:

Probability modeled is honcomp=1: This is a note informing which level of the response variable we are modeling. .


Model Convergence Status
Convergence criterion (GCONV=1E-8) satisfied.
Model Fit Statistics
Criterion Intercept Only Intercept and
Covariates
AIC 233.289 168.236
SC 236.587 181.430
-2 Log L 231.289 160.236
Testing Global Null Hypothesis: BETA=0
Test Chi-Square DF Pr > ChiSq
Likelihood Ratio 71.0525 3 <.0001
Score 58.6092 3 <.0001
Wald 39.8751 3 <.0001

Model Convergence Status

Describes whether the maximum-likelihood algorithm has converged or not, and what kind of convergence criterion is used to assess convergence. The default criterion is the relative gradient convergence criterion (GCONV), and the default precision is 10-8.

Model Fit Statistics

Relative fit statistics, with columns:

The rows of this table are:

Testing Global Null Hypothesis: BETA=0

Provides three asymptotically equivalent Chi-Square tests of the null hypothesis that all of the predictors’ regression coefficients are simultaneously equal to zero in the model. Rejection of the null suggests that at least one of the coefficients is different from zero. The difference between the various tests are where on the log-likelihood function they are evaluated. For further discussion, see Categorical Data Analysis, Second Edition, by Alan Agresti (pages 11-13). The columns are:

The specific tests are:

All three tests suggest that at least one parameter related to the predictors is non-zero in the population.


Analysis of Maximum Likelihood Estimates
Parameter DF Estimate Standard
Error
Wald
Chi-Square
Pr > ChiSq
Intercept 1 -12.7772 1.9759 41.8176 <.0001
female 1 1.4825 0.4474 10.9799 0.0009
read 1 0.1035 0.0258 16.1467 <.0001
science 1 0.0948 0.0305 9.6883 0.0019
Odds Ratio Estimates
Effect Point Estimate 95% Wald
Confidence Limits
female 4.404 1.832 10.584
read 1.109 1.054 1.167
science 1.099 1.036 1.167

Analysis of Maximum Likelihood Estimates

Logistic regression parameter estimates table, where the columns are:

Specific interpretations of the parameter estimates:

The data provide evidence that all the coefficients for female, read and science are all non-zero in the population.

Odds Ratio Estimates

Exponentiated coefficients for predictors are interpreted as odds ratios. The columns of this table are:

To interpret specific odds ratios (we use different styles of interpretations for each odds ratio):


Association of Predicted Probabilities and
Observed Responses
Percent Concordant 85.6 Somers' D 0.714
Percent Discordant 14.2 Gamma 0.715
Percent Tied 0.1 Tau-a 0.279
Pairs 7791 c 0.857

Association of Predicted Probabilites and Observed Responses