cooks_stats | R Documentation |
cooks_stats
returns the ordered Cook's statistics
(distances) decreasing in value of model
to identify the
most influential observations.
cooks_stats(model, n = 6L)
model |
A fitted model object from the
|
n |
an integer vector of length up to |
A vector of statistics
cooks.distance
.
lmod <- lm(price ~ sqft_living, data = home_sales)
cooks_stats(lmod, n = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.