agg_mod3_sims: Aggregate Model 3 Simulations

View source: R/agg_mod3_sims.R

agg_mod3_simsR Documentation

Aggregate Model 3 Simulations

Description

Because Model 3 has spatial structure, simulations from model 3 result in simulations of the process for each departement. For comparitive purposes, it's useful to aggregate these results into national counts, and this function does precisly that.

Usage

agg_mod3_sims(sims)

Arguments

sims

data.frame containing simulations from model 3.

Value

A data.frame with columns:

  • time: Numerical year

  • q05: 2.5 percentile of reported cholera cases

  • mean: Mean of reported cholera cases

  • q50: Median of reported cholera cases

  • q95: 97.5 percentile of reported cholera cases


zjiang2/haitipkg documentation built on March 1, 2024, 11:34 p.m.