av.plots(model, variable, ask=missing(variable), one.page=!ask, ...)
avp(...)
av.plot(model, ...)
## S3 method for class 'lm':
av.plot(model, variable,
labels=names(residuals(model)[!is.na(residuals(model))]),
identify.points=TRUE, las=par("las"), col=palette()[2], pch=1, lwd=2,
main="Added-Variable Plot", ...)
## S3 method for class 'glm':
av.plot(model, variable,
labels=names(residuals(model)[!is.na(residuals(model))]),
identify.points=TRUE, las=par("las"), 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=FALSE
), put all plots on one
graph.TRUE
, then identify points interactively.0
, ticks labels are drawn parallel to the
axis; set to 1
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
av.plots(lm(prestige~income+education+type, data=Duncan))
av.plots(glm(partic != "not.work" ~ hincome + children,
data=Womenlf, family=binomial))
Run the code above in your browser using DataLab