sim_vacc: Simulate vaccination at individual level

Description Usage Arguments Details Value

Description

sim_vacc simulates the number of vaccinated individuals at scale

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sim_vacc(
  vacc_est,
  vacc_locs,
  S,
  V,
  N,
  loc_ids,
  bins,
  row_ids,
  row_probs = NULL,
  coverage = TRUE
)

Arguments

vacc_est

numeric vector of coverage estimates (either 0, 1 or the number vaccinated)

vacc_locs

vector of numeric or character ids of same length as vacc_est, the locations corresponding to the coverage estimates

S, V, N,

numeric vector of Susceptibles, Vaccinated, and the Population size respectively, of same length

loc_ids

vector of numeric or character ids of same length as S/V/N that matches the demographic vectors to the locations from vacc_locs

bins

numeric, the total number of grid cells being simulated (i.e. at the scale of the simulation, this can be different than the scale of the vaccination campaigns) OR the number of admin units, for when simulating at admin rather than grid cell level, defaults to NULL

row_ids

numeric vector of same length as S/V/N of the row id corresponding to the demographic vectors to sample which grid cell or admin unit vaccinations are allocated to (if admin unit the same as loc_ids)

row_probs

numeric vector, optionally can pass the probability of vaccination for each grid cell, defaults to NULL.

coverage

boolean, defaults to TRUE, if TRUE then coverage estimates 0, 1 are translated to numbers with rbinom and then allocated, if FALSE then number vaccinated are allocated (constrained to the available susceptible dogs)

Details

Translates coverage estimates from sim_campaigns or from user defined data.table of location specific vaccination coverage/numbers filtered to the current timestep into numbers of vaccinated individuals in each grid cell at the scale specified in the simulation. Assumes that all currently vaccinated individuals are revaccinated (so campaigns are not additive). If scale of vaccination is at a coarser resolution (i.e. at village level) allocates to grid cell based on number of susceptibles available. This can also be modified by passing row_probs, grid cell level probabilities of vaccination (i.e. based on household surveys or spatial covariates).

To Do:

Value

a numeric vector of length bins of the number of currently vaccinated individuals in each grid cell


mrajeev08/simrabid documentation built on May 7, 2021, 11:47 a.m.