outlier_stats {api2lm} | R Documentation |
Outlier statistics
Description
outlier_stats
returns the ordered
studentized residuals (decreasing based on magnitude) of
model
to
Identify the most unusual observations.
Usage
outlier_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.
Examples
lmod <- lm(price ~ sqft_living, data = home_sales)
outlier_stats(lmod, n = 3)
[Package api2lm version 0.2 Index]