Outlier data for cook's d bar plot.

ols_prep_cdplot_outliers(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_cdplot_outliers(k)
#> # A tibble: 3 x 2 #> observation cooks_distance #> <int> <dbl> #> 1 17 0.320 #> 2 20 0.153 #> 3 31 0.340