ols_prep_rstudlev_data function

Studentized residual vs leverage plot data

Studentized residual vs leverage plot data

Generates data for studentized resiudual vs leverage plot.

ols_prep_rstudlev_data(model, threshold = NULL)

Arguments

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

Examples

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