Learn R Programming

olsrr (version 0.6.0)

ols_prep_srplot_data: Studentized residual plot data

Description

Generates data for studentized residual plot.

Usage

ols_prep_srplot_data(model, threshold = NULL)

Arguments

model

An object of class lm.

threshold

Threshold for detecting outliers. Default is 3.

Examples

Run this code
model <- lm(read ~ write + math + science, data = hsb)
ols_prep_srplot_data(model)

Run the code above in your browser using DataLab