View source: R/force_of_infection.R
force_of_infection | R Documentation |
This function computes the force of infection at time t + 1 at locations 1, 2,....n given incidence (by onset) at these locations, the serial interval and the probabilities of movement of individuals during their infectious period.
force_of_infection(x, r_t, ws, pmovement)
x |
A matrix of past incidence (integer). The matrix has 1 column for each location; that is, each column is interpreted as the incidence in a location. |
r_t |
A matrix of reproduction numbers at times 1 through t in locations 1 through n. |
ws |
flipped serial interval |
pmovement |
A n_locations X n_locations matrix of the probability of movement between locations. Entry in row i, column j is the probability that a case in i will move to j during their infectious period. |
vector; overall force of infection at each location.
Sangeeta Bhatia, Anne Cori, Pierre Nouvellet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.