outlier_test | R Documentation |
outlier_test
returns the observations identified
as an outlier based on the Bonferroni correction for a
studentized residuals.
outlier_test(model, n = stats::nobs(model), alpha = 0.05)
model |
A fitted model object from the
|
n |
The number of outliers to return. The default is all outliers. |
alpha |
The Bonferroni-adjusted threshold at which
an outlier is identified. The default is |
A data frame with the outliers.
rstudent
,
p.adjust
lmod <- lm(price ~ sqft_living, data = home_sales)
outlier_test(lmod)
outlier_test(lmod, alpha = 1, n = 7)
lmod2 <- lm(Petal.Length ~ Sepal.Length + Species, iris)
outlier_test(lmod2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.