# Example 1: Statistical measures for leverage, distance, and influence
check.outlier(lm(mpg ~ cyl + disp + hp, data = mtcars))
# Example 2: Append statistical measures to the mtcars data frame
cbind(mtcars,
check.outlier(lm(mpg ~ cyl + disp + hp, data = mtcars), append = FALSE))
Run the code above in your browser using DataLab