check_residuals_autocorrelation {auditor} | R Documentation |
Checks for autocorrelation in target variable or in residuals
check_residuals_autocorrelation(object, method = "pearson")
object |
An object of class 'explainer' created with function |
method |
will be passed to the cor.test functions |
autocorrelation between target variable and between residuals
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)