Generates data for deleted studentized residual vs fitted plot.

ols_prep_dsrvf_data(model)

Arguments

model

An object of class lm.

Examples

model <- lm(mpg ~ disp + hp + wt + qsec, data = mtcars) ols_prep_dsrvf_data(model)
#> $ds #> # A tibble: 32 x 5 #> obs pred dsr color fct_color #> <int> <dbl> <dbl> <chr> <ord> #> 1 1 22.6 -0.647 normal normal #> 2 2 21.7 -0.287 normal normal #> 3 3 25.3 -0.991 normal normal #> 4 4 21.7 -0.129 normal normal #> 5 5 18.4 0.111 normal normal #> 6 6 21.0 -1.18 normal normal #> 7 7 15.9 -0.646 normal normal #> 8 8 22.7 0.670 normal normal #> 9 9 23.9 -0.549 normal normal #> 10 10 19.6 -0.154 normal normal #> # ... with 22 more rows #> #> $cminx #> [1] -2.61789 #> #> $cmaxx #> [1] 3.656702 #>