Detect outliers using Bonferroni p values.

ols_test_outlier(model, cut_off = 0.05, n_max = 10, ...)

Arguments

model

An object of class lm.

cut_off

Bonferroni p-values cut off for reporting observations.

n_max

Maximum number of observations to report, default is 10.

...

Other arguments.

Examples

# model model <- lm(y ~ ., data = surgical) ols_test_outlier(model)
#> # A tibble: 1 x 3 #> studentized_residual unadjusted_p_val bonferroni_p_val #> <dbl> <dbl> <dbl> #> 1 5.71 0.000000887 0.0000479