powered by
Chart for identifying outliers.
ols_plot_resid_stand(model, 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
logical; if TRUE, prints the plot else returns a plot object.
TRUE
ols_srsd_chart() has been deprecated. Instead use ols_plot_resid_stand().
ols_srsd_chart()
ols_plot_resid_stand()
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)
Run the code above in your browser using DataLab