pmcmc | R Documentation |
Particle Markov chain Monte Carlo (PMCMC) algorithm
pmcmc(
model,
obs_process,
data,
priors,
n_particles,
n_iterations,
theta = NULL,
covmat = NULL,
adaptmix = 0.05,
adaptive = 100,
post_proposal = NULL,
init_model = NULL,
post_particle = NULL,
chain = NULL,
verbose = getOption("verbose", FALSE)
)
## S4 method for signature 'SimInf_model'
pmcmc(
model,
obs_process,
data,
priors,
n_particles,
n_iterations,
theta = NULL,
covmat = NULL,
adaptmix = 0.05,
adaptive = 100,
post_proposal = NULL,
init_model = NULL,
post_particle = NULL,
chain = NULL,
verbose = getOption("verbose", FALSE)
)
model |
The model to simulate data from. |
obs_process |
Specification of the stochastic observation
process. The |
data |
A |
priors |
The priors for the parameters to fit. Each prior is
specified with a formula notation, for example, |
n_particles |
An integer with the number of particles (> 1) to use at each timestep. |
n_iterations |
An integer specifying the number of iterations to run the PMCMC. |
theta |
A named vector of initial values for the parameters
of the model. Default is |
covmat |
A named numeric |
adaptmix |
Mixing proportion for adaptive proposal. Must be
a value between zero and one. Default is |
adaptive |
Controls when to start adaptive update. Must be
greater or equal to zero. If |
post_proposal |
An optional function that, if
non- |
init_model |
An optional function that, if non-NULL, is
applied in the particle filter before running each
proposal. The function must accept one argument of type
|
post_particle |
An optional function that, if non-NULL, is
applied after each completed particle. The function must
accept three arguments: 1) an object of |
chain |
An optional chain to start from. Must be a
|
verbose |
prints diagnostic messages when |
2010
\Roberts2009
continue_pmcmc
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.