cooks_stats {api2lm} | R Documentation |
Cook's statistics
Description
cooks_stats
returns the ordered Cook's statistics
(distances) decreasing in value of model
to identify the
most influential observations.
Usage
cooks_stats(model, n = 6L)
Arguments
model |
A fitted model object from the
|
n |
an integer vector of length up to |
Value
A vector of statistics
See Also
Examples
lmod <- lm(price ~ sqft_living, data = home_sales)
cooks_stats(lmod, n = 5)
[Package api2lm version 0.2 Index]