Generates data for studentized residual plot.

ols_prep_srplot_data(model)

Arguments

model

An object of class lm.

Examples

model <- lm(read ~ write + math + science, data = hsb) ols_prep_srplot_data(model)
#> $cminx #> [1] -4 #> #> $cmaxx #> [1] 3 #> #> $nseq #> [1] -1 -2 -3 #> #> $pseq #> [1] 1 2 #> #> $dsr #> # A tibble: 200 x 4 #> obs dsr color fct_color #> <int> <dbl> <chr> <ord> #> 1 1 1.56 normal normal #> 2 2 1.57 normal normal #> 3 3 -0.862 normal normal #> 4 4 2.13 normal normal #> 5 5 -1.01 normal normal #> 6 6 -1.55 normal normal #> 7 7 -0.00331 normal normal #> 8 8 -1.43 normal normal #> 9 9 1.07 normal normal #> 10 10 0.720 normal normal #> # ... with 190 more rows #>