Regression Influence Plot
This function creates a "bubble" plot of studentized residuals by hat values, with the areas of the circles representing the observations proportional to Cook's distances. Vertical reference lines are drawn at twice and three times the average hat value, horizontal reference lines at -2, 0, and 2 on the studentized-residual scale.
influence.plot(model, ...) ## S3 method for class 'lm': influence.plot(model, scale = 10, col = c(1, 2), labels = names(rstud), ...)
- a linear or generalized-linear model.
- a factor to adjust the size of the circles.
- colors for plotting points that do not and do have noteworthy Cook's distances.
FALSEdo not identify points interactively with the mouse; otherwise a vector of observation labels.
- arguments to pass to the
- Returns the indices of identified points.
J. Fox (2002) An R and S-PLUS Companion to Applied Regression. Sage.
data(Duncan) influence.plot(lm(prestige ~ income + education, data=Duncan))