as_transmission_rate | R Documentation |
Uses the R0 (R0), contact matrix (c), population (N), and infectious period (γ) to calculate the transmission rate using the following equation.
R0/(max(EV(C)) γ)
where EV(C) denotes the eigenvalues of the matrix C which is calculated from the contact matrix and the population (C[i,j] = c[i,j] N[j]).
as_transmission_rate(R0, contact_matrix, age_groups, duration = 1.8)
R0 |
The R0 of the disease |
contact_matrix |
The contact matrix between age groups |
age_groups |
The population size of the different age groups |
duration |
Duration of the infectious period. Default value is 1.8 days |
Returns the transmission rate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.