bsmc
gives draws from the posterior.## S3 method for class 'pomp':
bsmc(object, params, Np, est, smooth = 0.1,
ntries = 1, tol = 1e-17, lower = -Inf, upper = Inf, seed = NULL,
verbose = getOption("verbose"), max.fail = 0,
transform = FALSE, ...)
pomp
or inheriting class pomp
.params
that are to be estimated.
No updates will be made to the other parameters.
If est
is not specified, all parameters for which there is variation in params
will be estimated.sqrt(1-smooth^2)
.
Thus, smooth=0
means that no noise will be added to parameters.
Generally, the value of smooth
should be chrprocess
per particle used to estimate the expected value of the state process at time t+1
given the state and parameters at time t
.tol
are considered to be seed
is an integer, it is passed to set.seed
prior to any simulation and is returned as the TRUE
, print diagnostic messages.TRUE
, the algorithm operates on the transformed scale.params
on call).bsmc
was called.
If the argument seed
was specified, this is a copy;
if not, this is the internal state of the random number generator at the time of call.params
is unspecified or is a named vector, Np
draws are made from the prior distribution, as specified by rprior
.
Alternatively, params
can be specified as an npars
x Np
matrix (with rownames).## See the "Introducton to pomp" document for examples.
Run the code above in your browser using DataLab