powered by
Chart for identifying outliers
ols_srsd_chart(model)
an object of class lm
lm
ols_srsd_chart returns a list containing the following components:
ols_srsd_chart
a tibble with observation number and standardized resiudals that exceed threshold
standardized resiudals
threshold
threshold for classifying an observation as an outlier
Standardized residual (internally studentized) is the residual divided by estimated standard deviation.
# NOT RUN { model <- lm(mpg ~ disp + hp + wt, data = mtcars) ols_srsd_chart(model) # }
Run the code above in your browser using DataLab