ols_plot_resid_stand {olsrr} | R Documentation |
Standardized residual chart
Description
Chart for identifying outliers.
Usage
ols_plot_resid_stand(model, threshold = NULL, print_plot = TRUE)
Arguments
model |
An object of class |
threshold |
Threshold for detecting outliers. Default is 2. |
print_plot |
logical; if |
Details
Standardized residual (internally studentized) is the residual divided by estimated standard deviation.
Value
ols_plot_resid_stand
returns a list containing the
following components:
outliers |
a |
for classifying an observation as an outlier
threshold |
|
See Also
Examples
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_plot_resid_stand(model)
ols_plot_resid_stand(model, threshold = 3)
[Package olsrr version 0.6.0 Index]