epiverse-trace / epidemics

A library of published compartmental epidemic models, and classes to represent demographic structure, non-pharmaceutical interventions, and vaccination regimes, to compose epidemic scenarios.
https://epiverse-trace.github.io/epidemics/
Other
8 stars 2 forks source link

Update output helper functions for nested data.tables? #182

Closed pratikunterwegs closed 2 months ago

pratikunterwegs commented 6 months ago

This issue requests that functions for epidemic size and new infections calculations should work on the output of vectorised model functions being added in #176. The return type of these helper functions is open for discussion - one straightforward option is to return the same type as the input, i.e., a data.frame/data.table for similar input, and a nested data.table with parameter set and scenario identifiers for similar input.

An alternative approach is to keep existing functionality (single-run, data.frame-like input), and show users how to run this function over a list column in a nested data.table/tibble.

pratikunterwegs commented 2 months ago

Superseded by outcomes_averted() in #225 and #230.