Learn R Programming

olsrr (version 0.1.0)

ols_dsrvsp_plot: Deleted Studentized Residual vs Fitted Values Plot

Description

Plot for detecting violation of assumptions about residuals such as non-linearity, constant variances and outliers. It can also be used to examine model fit.

Usage

ols_dsrvsp_plot(model)

Arguments

model

an object of class lm

Details

Studentized deleted residuals (or externally studentized residuals) is the deleted residual divided by its estimated standard deviation. Studentized residuals are going to be more effective for detecting outlying Y observations than standardized residuals. If an observation has an externally studentized residual that is larger than 2 (in absolute value) we can call it an outlier.

Examples

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

Run the code above in your browser using DataLab