BaseVaccination#

class BaseVaccination(product=None, prob=None, age_range=None, sex=None, eligibility=None, label=None, **kwargs)[source]#

Bases: Intervention

Base vaccination class for determining who will receive a vaccine.

Parameters:
  • product (str/Product) – the vaccine to use

  • prob (float/arr) – annual probability of eligible population getting vaccinated

  • age_range (list/tuple) – age range to vaccinate

  • sex (int/str/list) – sex to vaccinate - accepts 0/1 or ‘f’/’m’ or a list of both

  • eligibility (inds/callable) – indices OR callable that returns inds

  • label (str) – the name of vaccination strategy

  • kwargs (dict) – passed to Intervention()

Methods

check_eligibility(sim)[source]#

Determine who is eligible for vaccination

apply(sim)[source]#

Perform vaccination by finding who’s eligible for vaccination, finding who accepts, and applying the vaccine product.

shrink(in_place=True)[source]#

Shrink vaccination intervention