infIndexPlot(model, ...)
influenceIndexPlot(model, ...)
"infIndexPlot"(model, vars=c("Cook", "Studentized", "Bonf", "hat"), main="Diagnostic Plots", labels, id.method = "y", id.n = if(id.method[1]=="identify") Inf else 0, id.cex=1, id.col=palette()[1], grid=TRUE, ...)
lm
or glm
."Cook"
for Cook's distances, "Studentized"
for Studentized
residuals, "Bonf"
for Bonferroni p-values for an outlier test, and
and "hat"
for hat-values (or leverages). Capitalization is optional.
All may be abbreviated by the first one or more letters.
id.n=0
for labeling no points. See
showLabels
for details of these arguments.
plot
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
m1 <- lm(prestige ~ income + education + type, Duncan)
influenceIndexPlot(m1)
Run the code above in your browser using DataLab