aggregateC | R Documentation |
The (age) groups of a contact matrix can be joined together by the
grouping
argument, which first sums over contact groups (columns) and
then averages over the corresponding participant groups (rows), optionally
using weights such as the age distribution of the study participants.
aggregateC(C, grouping, ..., weights = NULL)
C |
a square numeric contact matrix such as
|
grouping , ... |
specification of how to aggregate groups.
|
weights |
a named numeric vector containing the weights for the rows of
|
Sebastian Meyer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.