contact_matrix | R Documentation |
Create a contact matrix based on polymod data.
contact_matrix(polymod_data, demography, age_group_limits = as.numeric(c(1, 5, 15, 25, 45, 65)))
polymod_data |
Contact data for different age groups |
demography |
A vector with the population size by each age 0,1,2,.. |
age_group_limits |
The upper limits of the different age groups (by default: c(1,5,15,25,45,65), which corresponds to age groups: <1, 1-14, 15-24, 25-44, 45-64, >=65. |
Returns a symmetric matrix with the frequency of contact between each age group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.