R/distribution_vaccines.R
target_pop.Rd
Given the current dosing phase (dose
), the current step of the strategy matrix (strategy_matrix_step
)
and possible the age groups prioritized for the next dose next_dose_priority
, figure out who should get this dose
.
This will return a list of bitsets giving people who are eligible to get this dose, taking into account that they
have not yet had it, nor are scheduled for it, and (if dose > 1) are past the threshold for their previous dose.
target_pop(
dose,
variables,
events,
parameters,
timestep,
dt,
strategy_matrix_step,
next_dose_priority = NULL
)
what dose to target (the phase we are vaccinating)
a list of model variables
a list of model events
a list of parameters
the current time step
the size of the time step
the current step of the strategy matrix
(optional) a row of the next dose priority matrix