powered by
Generates data for studentized resiudual vs leverage plot.
ols_prep_rstudlev_data(model, threshold = NULL)
An object of class lm.
lm
Threshold for detecting outliers. Default is 2.
model <- lm(read ~ write + math + science, data = hsb) ols_prep_rstudlev_data(model) ols_prep_rstudlev_data(model, threshold = 3)
Run the code above in your browser using DataLab