| as_R0 | R Documentation | 
Uses the transmission rate (λ), contact matrix (c), population (N), and infectious period (γ) to calculate the R0 using the following equation.
λ 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_R0(transmission_rate, contact_matrix, age_groups, duration = 1.8)
| transmission_rate | The transmission rate 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 R0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.