check_residuals_trend {auditor}R Documentation

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

Description

Checks for trend in residuals

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

Usage

check_residuals_trend(object, B = 20)

Arguments

object

An object of class 'explainer' created with function explain from the DALEX package.

B

number of samplings

Value

standardized loess fit for residuals

Examples

library(DALEX)
dragons <- DALEX::dragons[1:100, ]
lm_model <- lm(life_length ~ ., data = dragons)
lm_exp <- explain(lm_model, data = dragons, y = dragons$life_length)
library(auditor)
check_residuals_trend(lm_exp)

[Package auditor version 1.3.3 Index]