Identify outliers in cook's d plot.

ols_prep_outlier_obs(k)

Arguments

k

Cooks' d bar plot data.

Examples

model <- lm(mpg ~ disp + hp + wt, data = mtcars) k <- ols_prep_cdplot_data(model) ols_prep_outlier_obs(k)
#> # A tibble: 32 x 5 #> obs cd color fct_color txt #> <int> <dbl> <chr> <ord> <int> #> 1 1 0.0115 normal normal NA #> 2 2 0.00462 normal normal NA #> 3 3 0.0160 normal normal NA #> 4 4 0.000128 normal normal NA #> 5 5 0.00184 normal normal NA #> 6 6 0.0156 normal normal NA #> 7 7 0.0105 normal normal NA #> 8 8 0.0131 normal normal NA #> 9 9 0.00253 normal normal NA #> 10 10 0.00367 normal normal NA #> # ... with 22 more rows