Data for generating the added variable plots.

ols_prep_avplot_data(model)

Arguments

model

An object of class lm.

Examples

model <- lm(mpg ~ disp + hp + wt, data = mtcars) ols_prep_avplot_data(model)
#> # A tibble: 32 x 4 #> mpg disp hp wt #> <dbl> <dbl> <dbl> <dbl> #> 1 21 160 110 2.62 #> 2 21 160 110 2.88 #> 3 22.8 108 93 2.32 #> 4 21.4 258 110 3.22 #> 5 18.7 360 175 3.44 #> 6 18.1 225 105 3.46 #> 7 14.3 360 245 3.57 #> 8 24.4 147. 62 3.19 #> 9 22.8 141. 95 3.15 #> 10 19.2 168. 123 3.44 #> # ... with 22 more rows