SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 25005: Compute a diagnostic similar to Cook's D for generalized linear models

DetailsCodeResultsAboutRate It

Compute a diagnostic similar to Cook's D for generalized linear models

Contents: Purpose / Requirements / Details

NOTE: Beginning in SAS 9.2, this statistic is available both for independent-observation data and clustered data. See the COOKD= and CLUSTERCOOKD= options in the OUTPUT statement in PROC GENMOD.

PURPOSE:
Illustrate computing a diagnostic similar to Cook's D statistic for generalized linear models. This diagnostic gives a measure of the influence of each observation on the model fit.
REQUIREMENTS:
Base SAS and SAS/STAT Software, Version 7 or later.
DETAILS:
Ideally, the influence of an observation on the model fit would be determined by fitting the model with and without the observation and computing twice the difference in the resulting log likelihoods, divided by the number of parameters in the model. However, this would require the model to be fit as many times as there are observations. The statistic computed here is an approximation that is considerably less expensive to compute.



These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.