aggregateC {hhh4contacts} | R Documentation |
Aggregate a Contact Matrix
Description
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.
Usage
aggregateC(C, grouping, ..., weights = NULL)
Arguments
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
|
Author(s)
Sebastian Meyer