Calculates loess fit for residuals and then extracts statistics that shows how far is this fit from one without trend

check_residuals_trend(model, B = 20)

Arguments

model

an object of the class `modelAudit`

B

number fo samplings

Value

standardized loess fit for 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_trend(lm_au)
#> ----------------------------------------------- #> Checks for trend in residuals #> ----------------------------------------------- #> Model name: lm #> Standardised loess fit: +8.15 .