Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate expected vaccinations and check model correctness #125

Open
pratikunterwegs opened this issue Oct 6, 2023 · 3 comments
Open
Assignees
Labels
Vaccination Related to implementing vaccination

Comments

@pratikunterwegs
Copy link
Collaborator

This issue was raised by @BlackEdder in comments on issue #33.

It should be possible to calculate the number of individuals of each age group expected to be vaccinated for a single-dose vaccination regime, given enough susceptibles ($S$) in each group, as $\nu \times S \times$ vaccination interval (in days).

This issue is to request a function f(vaccination, population) that takes a <vaccination> and <population>, and calculates the expected number of vaccinated individuals. This should be used to check the correctness of epidemic model runs (of the 'default' model) that implement vaccination. This would only hold when assuming that the population has enough individuals to be vaccinated (i.e., not everyone is infected and thus considered ineligible for vaccination).

@pratikunterwegs pratikunterwegs added the Vaccination Related to implementing vaccination label Oct 6, 2023
@pratikunterwegs pratikunterwegs self-assigned this Oct 6, 2023
@BlackEdder
Copy link
Contributor

Generally, we can't target Susceptibles specifically, and vaccination calendars are defined as the fraction of individuals in the full cohort vaccinated.
That would lead to a rescaling to the effective vaccination rate: $\hat{\nu} = \nu (S_i +E_i + I_i + R_i + V_i) / (S_i + E_i + I_i + R_I)$ * interval, where $i$ represents the cohort in the population. $\hat{\nu}$ is then the rate of vaccinating $S_i$, while $\nu$ is the rate of vaccinating cohort $i$.

Note that the above can be rewritten to the slightly simpler to understand form: $\nu N_i/(N_i - V_i)$

@pratikunterwegs
Copy link
Collaborator Author

Thanks @BlackEdder - I don't think I've understood. Are you suggesting that we should be able to calculate the effective vaccination rate? My understanding was that given a model structure, initial conditions, and a <vaccination>, we want to be able to calculate the expected number of vaccinated individuals. Should I re-focus this issue on vaccination rate instead?

@BlackEdder
Copy link
Contributor

You are right, that this is a somewhat separate issue. It would be great to have an easy way to number of to calculate the expected number of individuals at time $t$ given a vaccination calendar and population.

But I do think we should be expecting the user to only provide the fraction of individuals in the cohort to be vaccinated at each time step and then we can internally calculate the effective vaccination rate. Maybe we should split that discussion into a separate issue though?

@pratikunterwegs pratikunterwegs removed their assignment Jan 22, 2024
@bahadzie bahadzie self-assigned this Jan 26, 2024
bahadzie added a commit that referenced this issue Feb 6, 2024
 - Use data.table syntax from suggestion
 - Add tests for function
 - Revert snapshots from previous commit
Fixes #125: Calculate expected vaccinations and check model correctness
bahadzie added a commit that referenced this issue Feb 7, 2024
- Add function to calculate timing and size of epidemic peak
Fixes #125
- Calculate expected vaccinations and check model correctness
- Addresses all PR review comments
@bahadzie bahadzie mentioned this issue Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vaccination Related to implementing vaccination
Projects
None yet
Development

No branches or pull requests

3 participants