hatco: Compute a cutoff value for leverage hat values

View source: R/GLM_functions.R

hatcoR Documentation

Compute a cutoff value for leverage hat values

Description

This function computes a cutoff for leverage hat values from a glm() model fit.

Usage

hatco(x)

Arguments

x

A glm() model fit object.

Details

=============================================================================

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.

Value

A numeric value for the cutoff.

References

Fox, J. (1997). Applied regression analysis, linear models, and related methods. Thousand Oaks, CA: Sage Publications.

Examples

 m1 <- glm(formula = vs ~ wt + disp, family = binomial, data = mtcars)
 hatco(m1)


sjpierce/piercer documentation built on Dec. 30, 2024, 3:28 p.m.