Checks for outliers

check_residuals_outliers(model, n = 5)

Arguments

model

an object of the class `modelAudit`

n

number of lowest and highest standardized residuals to be presented

Value

indexes of lowest and highest standardized residuals

Examples

library(car) lm_model <- lm(prestige ~ education + women + income, data = Prestige) lm_au <- audit(lm_model, data = Prestige, y = Prestige$prestige) check_residuals_outliers(lm_au)
#> ----------------------------------------------- #> Checks for outliers #> ----------------------------------------------- #> Model name: lm #> Shift > 1: 0 ( 0 %) #> Shift > 2: 0 ( 0 %) #> Top lowest standardised residuals: #> -2.5649 (53), -2.1354 (46), -1.8837 (54), -1.8557 (41), -1.7617 (61) #> Top highest standardised residuals: #> 2.2648 (67), 2.1225 (82), 2.0597 (29), 1.8916 (31), 1.8274 (27)