check_residuals_autocorrelation: Checks for autocorrelation in target variable or in residuals

View source: R/check_residuals.R

check_residuals_autocorrelationR Documentation

Checks for autocorrelation in target variable or in residuals

Description

Checks for autocorrelation in target variable or in residuals

Usage

check_residuals_autocorrelation(object, method = "pearson")

Arguments

object

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

method

will be passed to the cor.test functions

Value

autocorrelation between target variable and between residuals

Examples

dragons <- DALEX::dragons[1:100, ]
lm_model <- lm(life_length ~ ., data = dragons)
lm_audit <- audit(lm_model, data = dragons, y = dragons$life_length)
check_residuals_autocorrelation(lm_audit)

auditor documentation built on Nov. 2, 2023, 6:13 p.m.