aggregate: aggregate model runs by vaccination group x vaccine strata

View source: R/support.R

aggregateR Documentation

aggregate model runs by vaccination group x vaccine strata

Description

aggregate model runs by vaccination group x vaccine strata

Usage

aggregate(
  x,
  what,
  as_incid = FALSE,
  stratum = NULL,
  f = identity,
  stochastic = FALSE,
  ...
)

Arguments

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)

stochastic

indicates if function is being used on output of stochastic or deterministic version of the trial model, only matters if as_incid = TRUE

...

named arguments to pass to f

Value

a transformed time series / array


mrc-ide/gonovax documentation built on Dec. 15, 2024, 11:02 a.m.