Zero-Inflated Model Lab: An Interactive Shiny Application for Modelling Count Data with Excess Zeros
Abstract
Count data often contain a large number of zeros in ecological and environmental research, arising from factors such as true species absence, imperfect detection, or the rarity of certain events. Choosing and interpreting suitable statistical models, like Poisson, Negative Binomial, zero-inflated, or hurdle models, can be difficult for non-experts because of the models' assumptions and diagnostic requirements. To address this, we introduce an interactive web application built in R with the Shiny framework that helps users analyse, compare, and interpret count-data models that may exhibit zero inflation. The application enables users to upload datasets, explore distributions and relationships among variables, and fit a variety of models including Poisson, Negative Binomial, zero-inflated, and hurdle approaches. It incorporates tools for model comparison using information criteria, visualisation of coefficient estimates and confidence intervals, assessment of variable importance, and diagnostic checks based on simulated residuals. Importantly, the app provides clear visualisations of both the count-generating and zero-generating processes, making it easier to communicate components that are typically challenging to interpret. To improve accessibility, the tool offers guided explanations of outputs and diagnostics, making it valuable for both research applications and teaching. A case study using environmental count data illustrates how the application helps users identify zero inflation, choose appropriate models, and gain insight into the ecological processes underlying the data. Overall, the application narrows the gap between advanced statistical methods and practical analysis, supporting reproducible workflows and enhancing the clarity and interpretability of models for zero-inflated count data.
Create a lesson
Metadata
- Comments
- 29 pages (including references), 17 figures
Related papers
Bayesian palaeoclimate reconstruction from zero-inflated count-compositional pollen data: A case study of Lago Grande di Monticchio in southern Italy
Shared title terminologystat.APAndré F. B. Menezes, Andrew C. Parnell, Brian Huntley et al.
False Discovery Rate Control via Prediction-Based, Model-Agnostic Data Splitting: An Application to Gut Microbiome Data in Liver Function
Shared title terminologystat.APMargaux Delporte, Yushu Shi
Hierarchical Empirical-Bayes Forecasting of Sparse Counts with Exposure: An Application to Airline Demand and Premium-Cabin Capacity Sharing
Shared title terminologystat.APIrakli Gudavadze
A Metric Space of Spatial Graphs: Two-Sample Testing, Data Depth, and Application to Cardiac Fibrosis
Shared title terminologystat.APAnna Calissano, Arstanbek Okenov, Katja Zeppenfeld et al.
Comparing Tobit and Two-Part Hurdle Models for Semi-Continuous Longitudinal Data with an Application to Clonal Hematopoiesis
Shared title terminologystat.APSumaja Bandreddi, Pei Zhang, Rebecca L. Kelly et al.
Where should we meet? Ad hoc selection of emergency staging areas with open data
Shared title terminologystat.APMoritz Schneider, Gustav Leinen, Alexander Fekete et al.