
Last chance! 50% off unlimited learning
Sale ends in
Choosing the right distributional family for regression models is essential to get more accurate estimates and standard errors. This function may help to check a models' distributional family and see if the model-family probably should be reconsidered. Since it is difficult to exactly predict the correct model family, consider this function as somewhat experimental.
check_distribution(model)
A model (that should response to residuals()
).
This function uses an internal random forest model to classify the distribution from a model-family.
# NOT RUN {
library(lme4)
model <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
check_distribution(model)
# }
Run the code above in your browser using DataLab