influence_stats {api2lm} | R Documentation |
Influence statistics
Description
influence_stats
returns a data frame with
influence-related statistics ordered from the largest
to smallest magnitude of the criterion
.
Usage
influence_stats(
model,
n = 6L,
rtype = c("studentized", "standardized"),
criterion = c("cooks", "dffits")
)
Arguments
model |
A fitted model object from the
|
n |
an integer vector of length up to |
rtype |
The residual type to plot on the y-axis. The
default is |
criterion |
The criterion that decides the size of
the points. The default is |
Value
A data frame of influence-related statistics.
Author(s)
Joshua French
See Also
rstandard
,
rstudent
,
hatvalues
cooks.distance
,
dffits
Examples
lmod <- lm(murder ~ hs_grad + urban + poverty + single,
data = crime2009)
influence_stats(lmod, n = 3)
influence_stats(lmod, rtype = "stan", crit = "df")