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
check_residuals_trend(object, B = 20)
object |
An object of class 'explainer' created with function |
B |
number of samplings |
standardized loess fit for residuals
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)