generate_age_mixing: Age mixing manipulatoin

Description Usage Arguments Value

View source: R/setup.R

Description

Converts a vector of age-mixing rates or contact durations into a matrix. If a matrix is passed, just returns the original matrix. Can be switched off to return a matrix of 1s

Usage

1
generate_age_mixing(contactVector, n_ages, ON = TRUE, TRANSPOSE = TRUE)

Arguments

contactVector

vector of length n_ages*n_ages giving age specific contact rates/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/durations


jameshay218/vaxedemic documentation built on Jan. 30, 2020, 2:58 a.m.