cooks20x {s20x}R Documentation

Cook's distance plot

Description

Draws a Cook's distance plot.

Usage

cooks20x(lmfit)

Arguments

lmfit output from the function "lm()".

Value

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

Examples

# Peruvian Indians data
data(peru.df)
attach(peru.df)
fit1<-lm(BP~age+years+I(years^2)+weight+height)
cooks20x(fit1)
detach(peru.df)

[Package s20x version 3.1-3 Index]