leverage.plots(model, term.name, ask=missing(term.name), ...)
leverage.plot(model, ...)
leverage.plot.lm(model, term.name,
labels=names(residuals(model)[!is.na(residuals(model))]),
identify.points=T, las=1, col=palette()[2], pch=1, lwd=2,
main="Leverage Plot")
leverage.plot.glm(model, ...)
lm
leverage.plots
.TRUE
, a menu is provided in the R Console for the
user to select the term(s) to plot.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
).NULL
. These functions are used for their side effect: producing
plots.leverage.plots
. By default, this
functions is used interactively through a text menu.
The model can contain factors and interactions. A leverage plot can be
drawn for each term in the model, including the constant.
leverage.plot.glm
is a dummy function, which generates an error message.av.plots
data(Duncan)
leverage.plots(lm(prestige~(income+education)*type, data=Duncan))
Run the code above in your browser using DataLab