Cookies on this website

We use cookies to ensure that we give you the best experience on our website. If you click 'Accept all cookies' we'll assume that you are happy to receive all cookies and you won't see this message again. If you click 'Reject all non-essential cookies' only necessary cookies providing core functionality such as security, network management, and accessibility will be enabled. Click 'Find out more' for information on how to change your cookie settings.

Compartmental models are widely used for dynamical systems where states are discrete, such as in infectious disease epidemiology with the so-called Susceptible-Infectious-Recovered (SIR) framework. For mathematical simplicity, rates of transition between compartments are generally assumed to be independent of the dwell time (or secondary timescale in survival analysis): they are either constant or dependent on the epidemiological time (or primary timescale in survival analysis) only, either directly (e.g. environmental or behavioural forcings in epidemiological models) or indirectly through dependence on other variables of the system (e.g. the force of infection in epidemiological models). In some domains of application, this memoryless assumption leads to distributions of dwelling times that are incompatible with those observed in data (e.g. infectious periods for childhood diseases), which can lead to serious problems since the model predictions are highly sensitive to the exact shape of these distributions. Here, we propose a deterministic, continuous-variable, numerical modelling approach that allows full flexibility on the dwell-time distributions. The accompanying denim package provides a user-friendly interface to implement our proposed method through a dedicated language for model definition. The package is open source and available on CRAN. As more detailed data on the clinical process of infections become available, the denim package will be extremely useful for building more realistic epidemiological models that provide more accurate projections.

More information Original publication

DOI

10.1111/2041-210x.70256

Type

Journal article

Publication Date

2026-01-01T00:00:00+00:00