summarise_projections: Summarise projections across simulations

View source: R/utils.R

summarise_projectionsR Documentation

Summarise projections across simulations

Description

Extract summary statistics for projections

Usage

summarise_projections(
  x,
  funs = c(quantile = quantile, min = min, max = max, mean = mean, sd = sd2),
  ...
)

Arguments

x

output from spatial_project function

funs

a list of summary functions to be applied. It is the user's responsibility to ensure that the functions are valid and can be applied to a vector. Defaults to quantile, min, max, mean and sd.

...

Additional arguments for funs, e.g. na.rm, probs

Details

If you want to use multiple functions and pass optional arguments other than na.rm, then use sd2 rather than sd to estimate standard deviation. This is because sd does not accept optional arguments.

Value

A list of the same length as that of the supplied functions. Each element of the list is the result of applying the corresponding function across simulations for each day and each location.

Author(s)

Sangeeta Bhatia, Anne Cori, Pierre Nouvellet


mrc-ide/spatialbranchr documentation built on Oct. 2, 2022, 5:56 p.m.