aggregate.Rdaggregate model runs by vaccination group x vaccine strata
aggregate(x, what, as_incid = FALSE, stratum = NULL, f = identity, ...)
| x | a transformed model run output |
|---|---|
| what | a character string of the cumulative trajectory to transform |
| as_incid | logical specifying whether to convert to incidence |
| stratum | an integer denoting the stratum to aggregate over, if NULL aggregation is over all strata |
| f | function to apply across parameter sets (eg. mean / median) |
| ... | named arguments to pass to f |
a transformed time series / array