View source: R/GLM_functions.R
CookDco | R Documentation |
This function computes a cutoff for Cook's D values from a glm() model fit.
CookDco(x)
x |
A glm() model fit object. |
=============================================================================
Fox (1997, p. 281) suggested a cutoff value for identifying observations with high Cook's D values in a GLM model. This function computes that cutoff. Examining observations with Cook's D values larger than the cutoff may be warranted.
A numeric value for the cutoff.
Fox, J. (1997). Applied regression analysis, linear models, and related methods. Thousand Oaks, CA: Sage Publications.
m1 <- glm(formula = vs ~ wt + disp, family = binomial, data = mtcars)
CookDco(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.