Description Usage Arguments Value
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
1 | generate_age_mixing(contactVector, n_ages, ON = TRUE, TRANSPOSE = TRUE)
|
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 |
the matrix of age-specific contact rates/durations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.