validate | R Documentation |
This function applies DHARMa validation tests to a user-specified list of models. Tests look for agreement between simulated and empirical residuals; assessing models for dispersion, zero-inflation, anomalous prevalence of outliers, and deviations from expected distributions.
validate(mod_set, n = 1000)
mod_set |
A list of model objects. |
n |
Number of DHARMa simulations to generate from each model. |
Applies DHARMa residual diagnostics test to a list of models.
Returns a data.frame containing model formulas for each model and P values for each test applied.
Hartig, Florian. 2017. “DHARMa: Residual Diagnostics for Hierarchical (Multi-Level/Mixed) Regression Models.” R Package Version 0.1 5.
library(glmmTMB)
mod_list <- list()
mod_list[[1]] <- glmmTMB(count ~ mined + (1|site), zi=~mined, family=poisson, data=Salamanders)
mod_list[[2]] <- glmmTMB(count ~ mined + cover + (1|site), zi=~mined, family=poisson, data=Salamanders)
mod_list[[3]] <- glmmTMB(count ~ mined + cover + spp + (1|site), zi=~mined, family=poisson, data=Salamanders)
dream::validate(mod_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.