Description Usage Arguments Details Value See Also Examples
Fit a spatial/non-spatial SEIR/SEIRS model based on the provided model components.
1 2 3 4 5 6 7 8 9 10 11 12 | SpatialSEIRModel(
data_model,
exposure_model,
reinfection_model,
distance_model,
transition_priors,
initial_value_container,
sampling_control,
samples = 100,
verbose = FALSE,
...
)
|
data_model |
A data model object, describing the link between
the observed data and the unobserved epidemic counts. Valid data models
are created using the |
exposure_model |
An exposure model object, which describes the
spatial and temporal variability of the exposure/infection process. Valid
exposure models are created using the |
reinfection_model |
A reinfection model object, which describes
whether or not individuals are able to return from the Removed category
to the Susceptible population. Valid reinfection models are created using the
|
distance_model |
A distance model object which describes the underlying
contact network, in addition to prior parameters which constrain the contact
process. Valid distance models are created using |
transition_priors |
An object containing information about the E to I and
I to R transition prior parameters. These are created using the
|
initial_value_container |
An object specifying the initial state
of the epidemic for each spatial location, created by the
|
sampling_control |
An object specifying information about the sampling
algorithm. In particular, the sampling_control argument should specify the
number of CPU cores to employ, and the random seed to use.
Sampling control objects are created by the
|
samples |
the number of samples to approximate from the posterior distribution, i.e. the number of particles to simulate. The number of particles should be considerably smaller than the batch size specified by the sampling_control argument. Ignored for the debug-oriented 'simulate' algorithm. |
verbose |
print diagnostic information on the progress of the fitting algorithm. Available output levels are 0, 1, 2, and 3, in ascending order of detail. Level 0 output will print almost no progress/diagnostic information to the log. Level 1 Will provide iteration updates only. Leve 2 provides additional chain setup and diagnostic information. Level 3 prints calculation diagnostic information. |
... |
Additional arguments, used internally. |
Use the supplied model components to build and fit a corresponding model. This function is used to fit all of the models in the spatial SEIRS model class. Numerous ABC algorithms have been developed, but as of now ABSEIR provides just two. The first algorithm is the basic rejection algorithm of Rubin 1980. While this approach performs well when good prior information is available, it can be extremely inefficient when prior distributions are diffuse with respect to the posterior. To address this shortcoming, we have implemented the Sequential Monte-Carlo approach proposed by Beaumont 2009, 2010. We may provide additional algorithms in the future, in particular that of Del Moral et al. 2012.
an object of type SpatialSEIRModel
DataModel
, ExposureModel
,
ReinfectionModel
, DistanceModel
,
TransitionPriors
, InitialValueContainer
,
SamplingControl
, summary.SpatialSEIRModel
,
plot.SpatialSEIRModel
, compareModels
,
epidemic.simulations
,
1 2 3 4 5 | ## Not run: results = SpatialSEIRModel(data_model, exposure_model,
reinfection_model, distance_model,
transition_priors, initial_value_container,
sampling_control, 50, TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.