Prepare data for cook's d bar plot.

ols_prep_cdplot_data(model)

Arguments

model

An object of class lm.

Examples

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