sim_trans: Simulate transmission outcomes of exposures at individual...

Description Usage Arguments Details Value

View source: R/transmit.R

Description

sim_trans simulates the outcome of each exposure/transmission event (i.e. whether the exposure was to a susceptible)

Usage

1
sim_trans(row_id, S, E, I, V, bins)

Arguments

row_id

numeric vector (length >= 1) the row ids corresponding to the grid cell of the exposure (one value per exposure)

S, E, I, V

numeric vector of state variables (i.e. # of individuals in each class in each grid cell) of length bins

bins

numeric, either the number of grid cells total OR the number of admin units, for when simulating at admin rather than grid cell level

Details

This function takes the locations of each exposure/transmission event, tabulates them, and then allocates them to individuals of each state (using sampling). These outcomes can be tracked explicitly (i.e. track if S/E/I/V or M if no individuals left to allocate to in that location) or just whether with a susceptible (S) or not (M) (see track argument in simrabid.

To Do:

Value

a list of two vectors (contact and infected) of same length as row_id.


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