Learn R Programming

olsrr (version 0.5.3)

ols_plot_resid_stand: Standardized residual chart

Description

Chart for identifying outliers.

Usage

ols_plot_resid_stand(model, print_plot = TRUE)

Value

ols_plot_resid_stand returns a list containing the following components:

outliers

a data.frame with observation number and standardized resiudals that exceed threshold

for classifying an observation as an outlier

threshold

threshold for classifying an observation as an outlier

Arguments

model

An object of class lm.

print_plot

logical; if TRUE, prints the plot else returns a plot object.

Deprecated Function

ols_srsd_chart() has been deprecated. Instead use ols_plot_resid_stand().

Details

Standardized residual (internally studentized) is the residual divided by estimated standard deviation.

See Also

[ols_plot_resid_stud()]

Examples

Run this code
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_plot_resid_stand(model)

Run the code above in your browser using DataLab