leverage.plots(model, term.name, ask=missing(term.name), ...)
leverage.plot(model, ...)
## S3 method for class 'lm':
leverage.plot(model, term.name,
labels=names(residuals(model)[!is.na(residuals(model))]),
identify.points=TRUE, las=par('las'), col=palette()[2], pch=1, lwd=2,
main="Leverage Plot", ...)
## S3 method for class 'glm':
leverage.plot(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
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
function 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
leverage.plots(lm(prestige~(income+education)*type, data=Duncan))
Run the code above in your browser using DataLab