Learn R Programming

olsrr (version 0.6.0)

ols_prep_rstudlev_data: Studentized residual vs leverage plot data

Description

Generates data for studentized resiudual vs leverage plot.

Usage

ols_prep_rstudlev_data(model, threshold = NULL)

Arguments

model

An object of class lm.

threshold

Threshold for detecting outliers. Default is 2.

Examples

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


Run the code above in your browser using DataLab