simul_from_post: Simulate epidemic from posterior distributions.

View source: R/simul.R

simul_from_postR Documentation

Simulate epidemic from posterior distributions.

Description

Use posterior distributions of a fitted object to simulate an epidemic.

Usage

simul_from_post(post.abc, prm, hosp.var, case.var, ci = 0.95, n.cores = 4)

Arguments

post.abc

Dataframe of posterior values.

prm

List of (not fitted) model parameters.

hosp.var

String. Type of hospitalization; NULL, 'hosp.adm' and 'hosp.occ'

case.var

String. Type of date for clinical cases; 'report' and 'episode'

ci

Numeric. Credible interval level. Default = 0.95.

n.cores

Integer. Number of cores used for parallel computing.

Value

Dataframe of summary statistics time series.


phac-nml-phrsd/wem documentation built on June 6, 2024, 11:06 p.m.