dfbetas_plot {api2lm} | R Documentation |
dfbetas index plots
Description
dfbetas_plot
creates index plot of the
dfbetas
statistics for each regressor.
Usage
dfbetas_plot(
model,
id_n = 3,
regressors = ~.,
add_reference = TRUE,
...,
text_arglist = list(),
abline_arglist = list(),
extendrange_f = 0.08
)
Arguments
model |
A fitted model object from the
|
id_n |
The number of points to identify with labels.
The default is |
regressors |
A formula describing the regressors for
which to plot the |
add_reference |
A logical value indicating whether a
reference line should be added. The default is
|
... |
Additional arguments passed to the
|
text_arglist |
Additional arguments passed to the
|
abline_arglist |
A named list specifying additional
arguments passed to the |
extendrange_f |
Positive number(s) specifying the
fraction by which the range of the residuals should be
extended using the |
Details
A horizontal reference line is added at -1 and +1 by
default if add_reference
is TRUE
.
Author(s)
Joshua French
See Also
Examples
lmod <- lm(murder ~ hs_grad + urban + poverty + single,
data = crime2009)
dfbetas_plot(lmod)
dfbetas_plot(lmod, regressors = ~ hs_grad, id_n = 4)