ols_prep_srplot_data function

Studentized residual plot data

Studentized residual plot data

Generates data for studentized residual plot.

ols_prep_srplot_data(model, threshold = NULL)

Arguments

  • model: An object of class lm.
  • threshold: Threshold for detecting outliers. Default is 3.

Examples

model <- lm(read ~ write + math + science, data = hsb) ols_prep_srplot_data(model)