contact.matrix: Create a contact matrix based on polymod data.

View source: R/deprecated.R

contact.matrixR Documentation

Create a contact matrix based on polymod data.

Description

Renamed to contact_matrix for consistency in naming

Usage

contact.matrix(polymod_data, age_sizes, age_group_limits = c(1, 5, 15,
  25, 45, 65))

Arguments

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.

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.