Studentized residual plotSource:
Graph for identifying outliers.
An object of class
Threshold for detecting outliers. Default is 3.
TRUE, prints the plot else returns a plot object.
ols_plot_resid_stud returns a list containing the
data.framewith observation number and
studentized residualsthat exceed
for classifying an observation as an outlier
thresholdfor classifying an observation as an outlier
Studentized deleted residuals (or externally studentized residuals) is the deleted residual divided by its estimated standard deviation. Studentized residuals are going to be more effective for detecting outlying Y observations than standardized residuals. If an observation has an externally studentized residual that is larger than 3 (in absolute value) we can call it an outlier.
model <- lm(mpg ~ disp + hp + wt, data = mtcars) ols_plot_resid_stud(model) ols_plot_resid_stud(model, threshold = 2)