View source: R/GLM_functions.R
hatco | R Documentation |
This function computes a cutoff for leverage hat values from a glm() model fit.
hatco(x)
x |
A glm() model fit object. |
=============================================================================
Fox (1997, p. 280) suggested a cutoff value for identifying observations with high leverage hat values in a GLM model. This function computes that cutoff. Examining observations with hat 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)
hatco(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.