powered by
Chart for identifying outliers.
ols_plot_resid_stand(model, threshold = NULL, print_plot = TRUE)
ols_plot_resid_stand returns a list containing the following components:
ols_plot_resid_stand
a data.frame with observation number and standardized resiudals that exceed threshold
data.frame
standardized resiudals
threshold
for classifying an observation as an outlier
threshold for classifying an observation as an outlier
An object of class lm.
lm
Threshold for detecting outliers. Default is 2.
logical; if TRUE, prints the plot else returns a plot object.
TRUE
Standardized residual (internally studentized) is the residual divided by estimated standard deviation.
ols_plot_resid_stud()
model <- lm(mpg ~ disp + hp + wt, data = mtcars) ols_plot_resid_stand(model) ols_plot_resid_stand(model, threshold = 3)
Run the code above in your browser using DataLab