Data for generating residual fit spread plot.

ols_prep_rfsplot_fmdata(model)

ols_prep_rfsplot_rsdata(model)

Arguments

model

An object of class lm.

Examples

model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) ols_prep_rfsplot_fmdata(model)
#> # A tibble: 32 x 2 #> x y #> <dbl> <dbl> #> 1 0.656 2.49 #> 2 0.594 1.62 #> 3 0.812 5.22 #> 4 0.625 1.63 #> 5 0.406 -1.66 #> 6 0.562 0.934 #> 7 0.219 -4.21 #> 8 0.688 2.65 #> 9 0.75 3.78 #> 10 0.469 -0.507 #> # ... with 22 more rows
ols_prep_rfsplot_rsdata(model)
#> # A tibble: 32 x 2 #> x y #> <dbl> <dbl> #> 1 0.25 -1.58 #> 2 0.438 -0.713 #> 3 0.156 -2.52 #> 4 0.562 -0.324 #> 5 0.656 0.271 #> 6 0.0938 -2.92 #> 7 0.281 -1.58 #> 8 0.844 1.66 #> 9 0.375 -1.07 #> 10 0.5 -0.383 #> # ... with 22 more rows