Learn R Programming

auditor (version 1.3.5)

check_residuals_trend: Checks for trend in residuals

Description

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)

Value

standardized loess fit for residuals

Arguments

object

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

B

number of samplings

Examples

Run this code
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)

Run the code above in your browser using DataLab