R/distribution_vaccines.R
get_current_eligible_from_coverage.Rd
Get people who are eligible for this dose, from the output of get_current_coverage
.
Because coverage
is people (by age) who either have this dose or are scheduled for it,
if we are checking eligibility for dose 1 we just want the complement of those people. For doses > 1 we need to
first take the complement and then check
to see who of those persons got their previous dose past the waiting threshold.
This function returns a list of bitsets.
get_current_eligible_from_coverage(
timestep,
dt,
coverage,
variables,
dose,
parameters
)
the current time step
time step size
output of get_current_coverage
a list of model variables
what dose to get eligibility for
a list of parameters