powered by
Checks for autocorrelation in target variable or in residuals
check_residuals_autocorrelation(object, method = "pearson")
autocorrelation between target variable and between residuals
An object of class 'explainer' created with function explain from the DALEX package.
explain
will be passed to the cor.test functions
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)
Run the code above in your browser using DataLab