Description Usage Arguments Details Value
sim_trans
simulates the outcome of each exposure/transmission event
(i.e. whether the exposure was to a susceptible)
1 |
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 |
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:
Tests: returns should be same length as length of row_id and should be S/E/I/V/M or S/M (no NAs)
a list of two vectors (contact and infected) of same length as row_id
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.