vaccinate_by_current_seasonal_alloc: allocate vaccines according to current seasonal allocation

Description Usage Arguments Value

View source: R/vax_alloc_funcs.R

Description

allocate vaccines according to current seasonal allocation in each location, then allocate uniformly within each country (without discriminating between ages/risk groups/infection statuses)

Usage

1
2
vaccinate_by_current_seasonal_alloc(sum_age_risk_func, travel_matrix,
  vax_allocation_params, S, E, I, R, SV, EV, IV, RV, incidence, vax_pool)

Arguments

sum_age_risk_func

a function which sums a vector across age and risk groups (created automatically in the code)

travel_matrix

a square matrix with side length n_countries. Travel_matrix[x,y] is the proportion of time an individual in location x spends in location y

vax_allocation_params

list of parameters for vaccine allocation

S

numeric vector of length n. number of unvaccinated susceptibles. n is number of locations * number of age groups * number of risk groups

E

numeric vector of length n. number of unvaccinated exposed

I

numeric vector of length n. number of unvaccinated infectious

R

numeric vector of length n. number of unvaccinated recovered

SV

numeric vector of length n. number of vaccinated susceptibles.

EV

numeric vector of length n. number of vaccinated exposed

IV

numeric vector of length n. number of vaccinated infectious

RV

numeric vector of length n. number of vaccinated recovered

incidence

numeric vector of length n. incidence

vax_pool

numeric vector of length 1. number of vaccines available

Value

n_vax_allocated numeric vector of length n_countries. number of vaccines allocated to each country


jameshay218/vaxedemic documentation built on Jan. 30, 2020, 2:58 a.m.