Como-DTC-Collaboration / comoDTC

An R package allowing easy access to the Como Covid-19 simulation model
Other
1 stars 0 forks source link

Write a function that produces intervention protocols for use by the ODE RHS #38

Open ben18785 opened 3 years ago

ben18785 commented 3 years ago

See #20 for a description of how interventions are currently processed. This function may look something like:

Inputs:

Outputs:

On the call, we discussed that probably the best way to handle this was by using "tanh" to smooth out the coverages so that they're continuous.

One thing to note is that, the way interventions are specified in the template means that the outputs should be superimposable. For example, you might have multiple school closures: (say) schools closed in march then opened April then closed again in June and opened up in July: in this case, I guess you'd want to be able to "sum" the two coverage "matrices" and make a single consistent matrix where coverage is bounded between 0 and 1. An alternative to handle this would be to take a vector of state and end dates and a vector of coverages.

ben18785 commented 3 years ago

@DavidGavaghan posted Suli's notes on numerical solution of ordinary differential equations.

ben18785 commented 3 years ago

I've also added @oscardm20994 since he's done this sort of thing before for interventions in Covid modelling.