paramix

Tools for calculating aggregate parameters and for disaggregating outcomes.

Overview

For more complex infectious disease compartmental models, you may need to represent populations groups which discretize or group some continuous feature. For example, your model might use broad age groups, but you might have higher resolution data on critical processes by age. And once you’ve run your model, you might want outcomes associated with those processes at finer resolution for some follow on analyses.

The paramix package provides convenient functions to create both the correct aggregate parameters and to disaggregate outcomes.

Installation

install.packages("paramix")

Or install the development version from GitHub:

remotes::install_github("accidda/paramix")

Usage

Briefly, there are three steps:

Reproducing the Paper Analysis

We describe the methodology and applications of paramix in:

Goodfellow L, Pearson CAB, Procter SR (2025). “paramix: An R package for parameter discretisation in compartmental models, with application to calculating years of life lost.” PLOS Computational Biology, 21(9): e1013420. https://doi.org/10.1371/journal.pcbi.1013420

To reproduce the complete simulation study, figures, and numerical results from the paper using the bundled GNU Make and renv pipeline, see the vignette:

vignette("reproducing-paper-analysis", package = "paramix")

or read the online reproduction vignette.