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

Enhancements to `epidemic_size()` #212

Closed pratikunterwegs closed 2 months ago

pratikunterwegs commented 3 months ago

This PR addresses issues raised in #190:

  1. epidemic_size() now optionally returns a <data.table> of epidemic sizes at specified timepoints via the logical simplify argument; the default behaviour remains returning a numeric vector (for backwards compatibility);
  2. Epidemic sizes at multiple timepoints can be requested by passing a vector to stage;
  3. Epidemic sizes can be requested at specific timepoints (e.g. $t = 100, 200, 300$) instead of a proportion of epidemic time;
  4. A data.table is automatically returned, overriding the simplify argument, if a vector is passed to stage or time.
github-actions[bot] commented 3 months ago

This is how benchmark results would change (along with a 95% confidence interval in relative change) if e99365afa2cc4fe1a21952917ae8fa32df97b6b1 is merged into main:

github-actions[bot] commented 3 months ago

This is how benchmark results would change (along with a 95% confidence interval in relative change) if e99365afa2cc4fe1a21952917ae8fa32df97b6b1 is merged into main:

github-actions[bot] commented 2 months ago

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 21ebc61b785ceb97c70e6e9ab3db1d0cd6fef08d is merged into main:

pratikunterwegs commented 2 months ago

Thanks @jamesmbaazam, will address these and merge later today.

github-actions[bot] commented 2 months ago

This is how benchmark results would change (along with a 95% confidence interval in relative change) if 21ebc61b785ceb97c70e6e9ab3db1d0cd6fef08d is merged into main: