av.plots(model, variable, ask=missing(variable), one.page=!ask, ...)
avp(...)
av.plot(model, ...)
av.plot.lm(model, variable,
labels=names(residuals(model)[!is.na(residuals(model))]),
identify.points=T, las=1, col=palette()[2], pch=1, lwd=2,
main="Added-Variable Plot")
av.plot.glm(model, variable, labels=names(residuals(model)),
identify.points=T, las=1, col=palette()[2], pch=1, lwd=2,
main="Added-Variable Plot", type=c("Wang", "Weisberg"))
lm
or glm
.avp
or av.plots
.TRUE
, a menu is provided in the R Console for the
user to select the term(s) to plot.TRUE
(and ask=F
), put all plots on one
graph.TRUE
, then identify points interactively.0
, ticks labels are drawn parallel to the
axis; set to 1
(the default) for horizontal labels (see par
).1
(a circle, see par
).2
(see par
)."Wang"
use the method of Wang (1985);
if "Weisberg"
use the method in the Arc software associated with
Cook and Weisberg (1999).av.plot.lm
or
av.plot.glm
.NULL
. These functions are used for their side effect: producing
plots.av.plots
(for which avp
is an abbreviation). By default, these functions are used interactively
through a text menu.
The model can contain factors and interactions. An added-variable plot can be
drawn for each column of the model matrix, including the constant.cr.plots
, ceres.plots
, leverage.plots
data(Duncan)
av.plots(lm(prestige~income+education+type, data=Duncan))
data(Womenlf)
av.plots(glm(partic != "not.work" ~ hincome + children,
data=Womenlf, family=binomial))
Run the code above in your browser using DataLab