View source: R/model_halfnormal.R
model_halfnormal | R Documentation |
Creates auditor_model_halfnormal
object that can be used for plotting halfnormal plot.
model_halfnormal(object, quant = FALSE, ...)
modelFit(object, quant = FALSE, ...)
object |
An object of class |
quant |
if TRUE values on axis are on quantile scale. |
... |
other parameters passed do |
An object of the class auditor_model_halfnormal
.
Moral, R., Hinde, J., & Demétrio, C. (2017). Half-Normal Plots and Overdispersed Models in R: The hnp Package.doi:http://dx.doi.org/10.18637/jss.v081.i10
data(titanic_imputed, package = "DALEX")
# fit a model
model_glm <- glm(survived ~ ., family = binomial, data = titanic_imputed)
glm_audit <- audit(model_glm,
data = titanic_imputed,
y = titanic_imputed$survived)
# validate a model with auditor
mh <- model_halfnormal(glm_audit)
mh
plot(mh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.