View source: R/influence_stats.R
influence_stats | R Documentation |
influence_stats
returns a data frame with
influence-related statistics ordered from the largest
to smallest magnitude of the criterion
.
influence_stats(
model,
n = 6L,
rtype = c("studentized", "standardized"),
criterion = c("cooks", "dffits")
)
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 |
A data frame of influence-related statistics.
Joshua French
rstandard
,
rstudent
,
hatvalues
cooks.distance
,
dffits
lmod <- lm(murder ~ hs_grad + urban + poverty + single,
data = crime2009)
influence_stats(lmod, n = 3)
influence_stats(lmod, rtype = "stan", crit = "df")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.