GenErlangFit: a tool for estimating empirical waiting-time distributions to inform compartmental epidemic models.
Vivek Murali, Anjalika Nande, Alison L Hill
Institute for Computational Medicine, Johns Hopkins University, Baltimore, USA. · Institute for Computational Medicine, Johns Hopkins University, Baltimore, USA. alison.hill@utoronto.ca.
Key points
From the paper's conclusion- Here we introduce GenErlangFit, an open-source R package and Shiny web application for fitting Erlang and related distributions to empirical waiting-time data.
Abstract
In standard compartmental models of infectious diseases, assumptions about the duration of time spent in each state (e.g., latent period, infectious period) significantly influence model outcomes and interpretation. When represented deterministically as systems of ordinary differential equations or stochastically as Markov chains, these models often assume constant transition rates between states, which implies an exponential distribution of "waiting times" in each state. However, this assumption is not consistent with available data for many diseases. An alternative that remains analytically or computationally tractable is to model each state as a series of multiple identical substates, which results in a gamma (Erlang) distributed overall duration of time spent in each disease state (known as the "linear chain trick"). While well-known, few studies have presented formal methods for determining the optimal number of substates or extended this approach to encode a wider variety of distributions by including non-identical substates. Here we introduce GenErlangFit, an open-source R package and Shiny web application for fitting Erlang and related distributions to empirical waiting-time data. It combines maximum likelihood parameter estimation with parametric bootstrap hypothesis testing to prioritize the simplest model structures that produce waiting times consistent with observed data. To improve flexibility, we incorporate the Erlang-Exponential model, an extension of the standard Erlang distribution that adds a final exponentially-distributed stage with a unique transition rate, allowing better approximation of empirical distributions with varying skewness and tail behavior. The web application provides an accessible interface for modelers to fit empirical data and build parsimonious, data-driven compartmental models.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A within-host-informed event-time framework linking epidemiological delay distributionsmedRxiv · 2026
- History-dependent SEIR models: equivalent formulations, fractional foundation, and growth and decay principlesmedRxiv · 2026
- Approximating Peak Prevalence in Multistage SIR Epidemics.Bulletin of mathematical biology · 2026
- Discrete dynamic survival analysis of epidemic case line listsmedRxiv · 2026
- Practical identifiability and parameter estimation of compartmental epidemiological modelsProceedings of the Royal Society A Mathematical Physical and Engineering Sciences · 2026
- Calibration of Time-Varying SEIR ModelsarXiv · 2026