View source: R/check_residuals.R
check_residuals_autocorrelation | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.