SamplingControl: Create a SamplingControl object, which determines which ABC...

Description Usage Arguments Details Value Examples

View source: R/samplingControl.R

Description

Create a SamplingControl object, which determines which ABC algorithm is to be used, and how it is configured.

Usage

1
SamplingControl(seed, n_cores, algorithm = "Beaumont2009", params = NA)

Arguments

seed

an integer, giving the seed to be used when simulating epidemics

n_cores

an integer giving the number of CPU cores to employ

algorithm

a string, either equal to "BasicABC" for the simple ABC rejection algorithm of Rubin (1980), "Beaumont2009" for the SMC approach of Beaumont et al. (2009), or "DelMoral2006" for the adaptive SMC approach of Del Moral (2012).

params

optional algorithm configuration parameters, see: detail.

Details

The basic ABC algorithm is useful in cases where good prior information is available, and proposals from the prior distribution are therefore likely to fall with relative frequency into high posterior density regions. In cases where the prior is diffuse with respect to the posterior, this can be very inefficient. The SMC algorithms of Del Moral 2012 and Beaumont et al. 2009 randomly generate parameters from a sequence of approximations to the posterior distribution, and can greatly improve efficiency.\

Additional parameters which may be passed to the algorithms:

Value

an object of type SamplingControl

Examples

1
samplingControl <- SamplingControl(123123, 2)

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