powered by
Generates data for standardized residual chart.
ols_prep_srchart_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_srchart_data(model) ols_prep_srchart_data(model, threshold = 3)
Run the code above in your browser using DataLab