Description Usage Arguments Value Author(s) References See Also Examples
Provides index plots of Cook's distances, leverages, Studentized residuals, and outlier significance levels for a regression object.
1 2 3 4 5 6 7 | infIndexPlot(model, ...)
influenceIndexPlot(model, ...)
## S3 method for class 'lm'
infIndexPlot(model, vars=c("Cook", "Studentized", "Bonf", "hat"),
id=TRUE, grid=TRUE, main="Diagnostic Plots", ...)
|
model |
A regression object of class |
vars |
All the quantities listed in this argument are plotted. Use |
main |
main title for graph |
id |
a list of named values controlling point labelling. The default, |
grid |
If TRUE, the default, a light-gray background grid is put on the graph. |
... |
Arguments passed to |
Used for its side effect of producing a graph. Produces four index plots of Cook's distance, Studentized Residuals, the corresponding Bonferroni p-values for outlier tests, and leverages.
Sanford Weisberg, sandy@umn.edu
Cook, R. D. and Weisberg, S. (1999) Applied Regression, Including Computing and Graphics. Wiley.
Fox, J. (2008) Applied Regression Analysis and Generalized Linear Models, Second Edition. Sage.
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
Weisberg, S. (2014) Applied Linear Regression, Fourth Edition, Wiley.
cooks.distance
, rstudent
,
outlierTest
, hatvalues
1 | influenceIndexPlot(lm(prestige ~ income + education + type, Duncan))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.