Learn R Programming

olsrr (version 0.4.0)

ols_srsd_chart: Standardized Residual Chart

Description

Chart for identifying outliers

Usage

ols_srsd_chart(model)

Arguments

model

an object of class lm

Value

ols_srsd_chart returns a list containing the following components:

outliers

a tibble 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

Details

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

Examples

Run this code
# NOT RUN {
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
ols_srsd_chart(model)
# }

Run the code above in your browser using DataLab