get_current_eligible_from_coverage: Get persons who are eligible for this dose

View source: R/distribution_vaccines.R

get_current_eligible_from_coverageR Documentation

Get persons who are eligible for this dose

Description

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.

Usage

get_current_eligible_from_coverage(
  timestep,
  dt,
  coverage,
  variables,
  dose,
  parameters
)

Arguments

timestep

the current time step

dt

time step size

coverage

output of get_current_coverage

variables

a list of model variables

dose

what dose to get eligibility for

parameters

a list of parameters


mrc-ide/safir documentation built on Aug. 2, 2022, 10:47 a.m.