# Example 1: Regression model and measures for leverage, distance, and influence
mod.lm <- lm(mpg ~ cyl + disp + hp, data = mtcars)
check.outlier(mod.lm)
# Merge result table with the data
dat1 <- cbind(mtcars, check.outlier(mod.lm))
Run the code above in your browser using DataLab