ComputeR0: Compute empirically adjusted reproductive number curves for a...

Description Usage Arguments Details Examples

View source: R/ComputeR0.R

Description

Compute empirically adjusted reproductive number curves for a PosteriorSimulation object

Usage

1
ComputeR0(SimObject, cores = 1)

Arguments

SimObject

a PosteriorSimulation object, as created by the epidemic.simulations function.

cores

Optional argument - use multiple cores?

Details

The main SpatialSEIRModel functon performs many simulations, but for the sake of memory efficiency and runtime does not return the simulated compartment values to the user. If simulated epidemics are desired, they may be quickly and easily generated using the epidemic.simulations function. Reproductive number estimation is performed using this function, as the calculations are somewhat computationally intensive and may not be required by all users.

Examples

1
2
3
## Not run: r0 <- ComputeR0(epidemic.simulations(modelObject, replicates = 10,
                                                 verbose = TRUE))
## End(Not run)

grantbrown/ABSEIR documentation built on Oct. 14, 2021, 2:32 p.m.