View source: R/GLM_functions.R
InfCases | R Documentation |
This function identifies influential cases from a glm() model by finding those that exceed cutoffs for high leverage and high Cook's D.
InfCases(x, digits = 3)
x |
A glm() model fit object. |
digits |
An integer specifying the number of decimal places to used when rounding the result. Defaults to 3. |
=============================================================================
Fox (1997, p. 280-281) suggested cutoff values for identifying observations with high leverage hat values and high Cook's D values in a GLM model. Listing these influential observations is a quick way to inspect a model fit.
A data frame showing observations that have both high leverage and high Cook's D.
Fox, J. (1997). Applied regression analysis, linear models, and related methods. Thousand Oaks, CA: Sage Publications.
hatco
for leverage cutoff, CookDco
for
Cook's D cutoff.
m1 <- glm(formula = vs ~ wt + disp, family = binomial, data = mtcars)
InfCases(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.