InstituteforDiseaseModeling / covasim

COVID-19 Agent-based Simulator (Covasim): a model for exploring coronavirus dynamics and interventions
https://covasim.org
MIT License
250 stars 223 forks source link

Add the possibility to explicitly set the number of vaccinations #311

Closed imcatta closed 3 years ago

imcatta commented 3 years ago

Is your feature request related to a problem? Please describe.

Most countries make available data on the number of vaccinations carried out. Currently, it's hard to calibrate Covasim using those data, because the vaccinate() intervention works based on the prob parameter.

Describe the solution you'd like

It would be very useful to add the ability to explicitly set the number of vaccinations per day, similarly to the test_num() intervention. In addition, it would be important to retain the ability to target a specific subpopulation.

Describe alternatives you've considered

Use the subtarget parameter to explicilty target people, but it's hard to make it work if dynamic rescaling is on.

Additional context

An example of vaccinations data available https://github.com/italia/covid19-opendata-vaccini.

cliffckerr commented 3 years ago

Thanks @imcatta ! We are aware of this and it didn't quite make it into the 3.0.2 release, but we're hoping it'll make it into the 3.0.3 release :) (Not sure exactly on what timeframe, but let's say about a week.)

imcatta commented 3 years ago

Any updates? :)

cliffckerr commented 3 years ago

@imcatta Sorry, it took a while! But this was part of the Covasim 3.0.6 release last week, a new intervention called cv.vaccinate_num(): https://docs.idmod.org/projects/covasim/en/latest/whatsnew.html#version-3-0-6-2021-06-21