Tools for calculating aggregate parameters and for disaggregating outcomes.
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.
remotes::install_github("cmmid/paramix")
Briefly, there are three steps:
- create a translation object (
alembic
) based on the parameter function (e.g. the infection fatality ratio as a function of age), the density distribution of the pertinent feature (e.g. the population age pyramid), the model partitions of the feature (e.g. age groups), and the post-processing partitions of the feature (e.g. age in years). - create model parameters (
blend
) from the alembic - apply the alembic to model results (
distill
) to impute higher resolution outcomes