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)
Run the code above in your browser using DataLab