View source: R/model_residual.R
model_residual | R Documentation |
Creates auditor_model_residual
that contains sorted residuals.
An object can be further used to generate plots.
For the list of possible plots see see also section.
model_residual(object, ...)
modelResiduals(object, ...)
object |
An object of class |
... |
other parameters |
An object of the class auditor_model_residual
.
plot_acf, plot_autocorrelation, plot_residual, plot_residual_boxplot,
plot_pca, plot_correlation, plot_prediction, plot_rec, plot_residual_density,
plot_residual, plot_rroc, plot_scalelocation, plot_tsecdf
library(DALEX)
# fit a model
model_glm <- glm(m2.price ~ ., data = apartments)
glm_audit <- explain(model_glm,
data = apartments,
y = apartments$m2.price)
# validate a model with auditor
mr <- model_residual(glm_audit)
mr
plot(mr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.