Chart for identifying outliers.
Value
ols_plot_resid_stand
returns a list containing the
following components:
- outliers
a
data.frame
with observation number andstandardized resiudals
that exceedthreshold
for classifying an observation as an outlier
- threshold
threshold
for classifying an observation as an outlier
Details
Standardized residual (internally studentized) is the residual divided by estimated standard deviation.
Examples
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_plot_resid_stand(model)
ols_plot_resid_stand(model, threshold = 3)