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

Read and interpolate data for parameter time dependence #108

Closed pratikunterwegs closed 3 months ago

pratikunterwegs commented 11 months ago

This issue is to flag a potential need for functionality that can ingest time and covariate data, and convert it to a function of the form f(t, x) for use with the time_dependence argument in epidemic_x(...).

One thing that would be useful consider for next version is how to convert temporal data (e.g. vaccine coverage over time) into a continuous function for easy incorporation into {epidemics}/ODE model – as this conversion is often one of the more time-consuming pre-processing tasks when dealing with temporal interventions. {odin} has some useful interpolation functions we may want to lean on if relevant (as it's on CRAN): https://mrc-ide.github.io/odin/articles/odin.html

Originally posted by @adamkucharski in https://github.com/epiverse-trace/epidemics/issues/93#issuecomment-1737190941

pratikunterwegs commented 3 months ago

The time_dependence functionality already allows flexible reading in of any data and its use to determine time-dependent parameter values.