cooks20x: Cook's distance plot

Description Usage Arguments Value Examples

View source: R/cooks20x.R

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)
peru.fit = lm(BP ~ age + years + I(years^2) + weight + height, data = peru.df)
cooks20x(peru.fit)

s20x documentation built on May 31, 2017, 5:17 a.m.

Search within the s20x package
Search all R packages, documentation and source code