The Particle MCMC algorithm for estimating the parameters of a
partially-observed Markov process. Running pmcmc
causes a particle
random-walk Metropolis-Hastings Markov chain algorithm to run for the
specified number of proposals.
# S4 method for data.frame
pmcmc(
data,
Nmcmc = 1,
proposal,
Np,
params,
rinit,
rprocess,
dmeasure,
dprior,
...,
verbose = getOption("verbose", FALSE)
)# S4 method for pomp
pmcmc(
data,
Nmcmc = 1,
proposal,
Np,
...,
verbose = getOption("verbose", FALSE)
)
# S4 method for pfilterd_pomp
pmcmc(
data,
Nmcmc = 1,
proposal,
Np,
...,
verbose = getOption("verbose", FALSE)
)
# S4 method for pmcmcd_pomp
pmcmc(data, Nmcmc, proposal, ..., verbose = getOption("verbose", FALSE))
either a data frame holding the time series data,
or an object of class ‘pomp’,
i.e., the output of another pomp calculation.
Internally, data
will be internally coerced to an array with storage-mode double
.
The number of PMCMC iterations to perform.
optional function that draws from the proposal distribution. Currently, the proposal distribution must be symmetric for proper inference: it is the user's responsibility to ensure that it is. Several functions that construct appropriate proposal function are provided: see MCMC proposals for more information.
the number of particles to use.
This may be specified as a single positive integer, in which case the same number of particles will be used at each timestep.
Alternatively, if one wishes the number of particles to vary across timesteps, one may specify Np
either as a vector of positive integers of length
length(time(object,t0=TRUE))
or as a function taking a positive integer argument.
In the latter case, Np(k)
must be a single positive integer, representing the number of particles to be used at the k
-th timestep:
Np(0)
is the number of particles to use going from timezero(object)
to time(object)[1]
,
Np(1)
, from timezero(object)
to time(object)[1]
,
and so on,
while when T=length(time(object))
, Np(T)
is the number of particles to sample at the end of the time-series.
optional; named numeric vector of parameters.
This will be coerced internally to storage mode double
.
simulator of the initial-state distribution.
This can be furnished either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
Setting rinit=NULL
sets the initial-state simulator to its default.
For more information, see rinit specification.
simulator of the latent state process, specified using one of the rprocess plugins.
Setting rprocess=NULL
removes the latent-state simulator.
For more information, see rprocess specification for the documentation on these plugins.
evaluator of the measurement model density, specified either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
Setting dmeasure=NULL
removes the measurement density evaluator.
For more information, see dmeasure specification.
optional; prior distribution density evaluator, specified either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
For more information, see prior specification.
Setting dprior=NULL
resets the prior distribution to its default, which is a flat improper prior.
additional arguments supply new or modify existing model characteristics or components.
See pomp
for a full list of recognized arguments.
When named arguments not recognized by pomp
are provided, these are made available to all basic components via the so-called userdata facility.
This allows the user to pass information to the basic components outside of the usual routes of covariates (covar
) and model parameters (params
).
See userdata for information on how to use this facility.
logical; if TRUE
, diagnostic messages will be printed to the console.
An object of class ‘pmcmcd_pomp’.
The following can be applied to the output of a pmcmc
operation:
pmcmc
repeats the calculation, beginning with the last state
continue
continues the pmcmc
calculation
plot
produces a series of diagnostic plots
filter.traj
extracts a random sample from the smoothing distribution
traces
produces an mcmc
object, to which the various coda convergence diagnostics can be applied
To re-run a sequence of PMCMC
iterations, one can use the pmcmc
method on a ‘pmcmc’ object.
By default, the same parameters used for the original PMCMC run are re-used
(except for verbose
, the default of which is shown above). If one
does specify additional arguments, these will override the defaults.
Some Windows users report problems when using C snippets in parallel computations.
These appear to arise when the temporary files created during the C snippet compilation process are not handled properly by the operating system.
To circumvent this problem, use the cdir
and cfile
options to cause the C snippets to be written to a file of your choice, thus avoiding the use of temporary files altogether.
C. Andrieu, A. Doucet, and R. Holenstein. Particle Markov chain Monte Carlo methods. Journal of the Royal Statistical Society, Series B 72, 269--342, 2010.
More on pomp estimation algorithms:
approximate Bayesian computation
,
bsmc2()
,
estimation algorithms
,
mif2()
,
nonlinear forecasting
,
pomp-package
,
probe matching
,
spectrum matching
More on sequential Monte Carlo methods:
bsmc2()
,
cond.logLik()
,
eff.sample.size()
,
filter.mean()
,
filter.traj()
,
kalman
,
mif2()
,
pfilter()
,
pred.mean()
,
pred.var()
,
saved.states()
,
wpfilter()
More on full-information (i.e., likelihood-based) methods:
bsmc2()
,
mif2()
,
pfilter()
,
wpfilter()
More on Markov chain Monte Carlo methods:
approximate Bayesian computation
,
proposals
More on Bayesian methods:
approximate Bayesian computation
,
bsmc2()
,
dprior()
,
prior specification
,
rprior()