contact_matrix: Create a contact matrix based on polymod data.

View source: R/RcppExports.R

contact_matrixR Documentation

Create a contact matrix based on polymod data.

Description

Create a contact matrix based on polymod data.

Usage

contact_matrix(polymod_data, demography,
  age_group_limits = as.numeric(c(1, 5, 15, 25, 45, 65)))

Arguments

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.

Value

Returns a symmetric matrix with the frequency of contact between each age group


MJomaba/flu-evidence-synthesis documentation built on April 26, 2022, 11:12 p.m.