generate_contact_matrix: Age mixing matrix generation

Description Usage Arguments Value

View source: R/setup.R

Description

Generates the age-mixing contact matrix taking into account contact rates and durations

Usage

1
2
generate_contact_matrix(contactRates, contactDur, n_ages, ON = TRUE,
  TRANSPOSE = TRUE)

Arguments

contactRates

the vector or matrix of age-specific contact rates

contactDur

the vector or matrix of age-specific contact durations

n_ages

the number of age groups

ON

bool, if FALSE, turns off age mixing

TRANSPOSE

bool, if TRUE, returns the transpose of the created matrix

Value

the matrix of age-specific contact rates


jameshay218/vaxedemic documentation built on July 29, 2018, 12:43 p.m.