check_residuals_autocorrelation {auditor}R 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)

[Package auditor version 1.3.3 Index]