contact.matrix | R Documentation |
Renamed to contact_matrix for consistency in naming
contact.matrix(polymod_data, age_sizes, age_group_limits = c(1, 5, 15, 25, 45, 65))
polymod_data |
Contact data for different age groups |
age_sizes |
A vector with the population size by each age 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.