Learn R Programming

alr3 (version 1.1.12)

inf.index: Influence index plot

Description

Provides index plots of Cook's distances, leverages, Studentized residuals and outlier significance levels for a regression object.

Usage

inf.index(m,cooks.distance,rstudent,outlier.t.test,leverages,...)

## S3 method for class 'lm':
inf.index(m, cooks.distance = TRUE, rstudent = TRUE, 
    outlier.t.test = TRUE, leverages = TRUE, ...)

Arguments

m
A regression object
cooks.distance
If TRUE, plot Cook's distances
rstudent
If TRUE, plot the Studentized residuals
outlier.t.test
If TRUE, index plot n*2*qt(-abs(rstandard),m$df-1), the two-tailed significance levels for the outlier test based on the Bonferroni inequality
leverages
If TRUE, plot the leverages
...
Arguments passed to plot

Value

  • Used for its side effect of producing a graph.

References

S. Weisberg (2005), Applied Linear Regression, third edition, Wiley, Chapter 8

See Also

cooks.distance

Examples

Run this code
data(rat)
names(rat)
m1 <- lm(y~BodyWt+LiverWt+Dose,data=rat)
inf.index(m1)

Run the code above in your browser using DataLab