cooks20x: Cook's distance plot

Description

Draws a Cook's distance plot.

Usage

1
cooks20x(lmfit)

Arguments

lmfit

output from the function "lm()".

Value

Returns the plot and identifies the three highest Cook's values

Examples

1
2
3
4
# Peruvian Indians data
data(peru.df)
fit1<-lm(BP~age+years+I(years^2)+weight+height, data = peru.df)
cooks20x(fit1)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.