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

ODE model functions should accept vectors of infection parameters #166

Closed pratikunterwegs closed 5 months ago

pratikunterwegs commented 6 months ago

This issue is to request that model functions should accept vectors of infection parameters.

  1. The expected use case is laid out in this discussion, and in #20;
  2. Options for the new API for model functions is discussed in #160, with toy examples shown in this Gist;
  3. This change is initially expected to be rolled out for the Rcpp implementations of ODE models only; see #162;
  4. Parameter input vectors are expected to follow Tidyverse recycling rules;
  5. Following this change, model functions are expected to return a nested data.frame or data.table, with one row per parameter combination.