For the latest version of JMP Help, visit JMP.com/help.


Publication date: 07/24/2024

Statistical Details for Model Selection and Deviance

An important aspect of generalized linear modeling is the selection of explanatory variables in the model. Changes in goodness-of-fit statistics are often used to evaluate the contribution of subsets of explanatory variables to a particular model. The deviance is defined to be twice the difference between the maximum attainable log-likelihood and the log-likelihood at the maximum likelihood estimates of the regression parameters. The deviance is often used as a measure of goodness of fit. The maximum attainable log-likelihood is achieved with a model that has a parameter for every observation. Table 13.4 lists the deviance formula for each of the available distributions for the response variable.

Table 13.4 Deviance Formulas for Response Distributions

Distribution

Deviance Formula

Normal

Equation shown here

Binomial

Equation shown here

Poisson

Equation shown here

Exponential

Equation shown here

The Pearson chi-square statistic is defined as follows:

Equation shown here

where

yi is the ith response

μi is the corresponding predicted mean

V(μi) is the variance function

wi is a known weight for the ith observation

Note: If no weight is specified, wi = 1 for all observations.

One strategy for variable selection is to fit a sequence of models. You start with a simple model that contains only an intercept term, and then include one additional explanatory variable in each successive model. You can measure the importance of the additional explanatory variable by the difference in deviance or fitted log-likelihood values between successive models. Asymptotic tests enable you to assess the statistical significance of the additional term.

When the distribution is nonnormal, a normal critical value is used instead of a t-distribution critical value in inverse prediction.

Residual Formulas

Deviance

Equation shown here

Studentized Deviance

Equation shown here

Pearson

Equation shown here

Studentized Pearson

Equation shown here

where

(yiμi) is the raw residual

sign(yiμi) is 1 if (yiμi) is positive and -1 if (yiμi) is negative

di is the contribution to the total deviance from observation i

φ is the dispersion parameter

V(μi) is the variance function

hi is the ith diagonal element of the matrix We(1/2)X(X'WeX)-1X'We(1/2), where We is the weight matrix used in computing the expected information matrix.

For more information about residuals and generalized linear models, see the GENMOD Procedure chapter in SAS Institute Inc. (2024a).

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).