View source: R/ols-standardized-residual-chart.R
ols_plot_resid_stand | R Documentation |
Chart for identifying outliers.
ols_plot_resid_stand(model, threshold = NULL, print_plot = TRUE)
model |
An object of class |
threshold |
Threshold for detecting outliers. Default is 2. |
print_plot |
logical; if |
Standardized residual (internally studentized) is the residual divided by estimated standard deviation.
ols_plot_resid_stand
returns a list containing the
following components:
outliers |
a |
for classifying an observation as an outlier
threshold |
|
ols_plot_resid_stud()
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_plot_resid_stand(model)
ols_plot_resid_stand(model, threshold = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.