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 12.4 lists the deviance formula for each of the available distributions for the response variable.
μi is the corresponding predicted mean
When the distribution is non-normal, a normal critical value is used instead of a t-distribution critical value in inverse prediction.
φ is the dispersion parameter
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 the SAS/STAT 14.3 User’s Guide (SAS Institute Inc. 2017, ch. 46).