epidemic.simulations: perform and return epidemic simulations based on a fitted...

Description Usage Arguments Details Examples

View source: R/epidemicSimulations.R

Description

perform and return epidemic simulations based on a fitted model object

Usage

1
epidemic.simulations(modelObject, replicates = 1, verbose = FALSE)

Arguments

modelObject

a SpatialSEIRModel object, as created by the SpatialSEIRModel function.

replicates

the number of replicate simulations to perform for each sample contained in modelObject actual simulated compartment values should be returned. Omitting compartment values is faster, but of course conveys less information.

verbose

a logical value, indicating whether verbose output should be provided.

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 this function.

Examples

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

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