View source: R/leverage_stats.R
leverage_stats | R Documentation |
leverage_stats
returns the ordered
leverage values (decreasing) of
model
to
identify the highest leverage observations.
leverage_stats(model, n = 6L)
model |
A fitted model object from the
|
n |
an integer vector of length up to |
A vector of statistics
lmod <- lm(price ~ sqft_living, data = home_sales)
leverage_stats(lmod, n = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.