View source: R/approximate_discretized_score.R
approximate_discretized_score | R Documentation |
Computes MCMC estimator of the time-discretized score function.
approximate_discretized_score(
model,
theta,
discretization,
observations,
nparticles,
resampling_threshold = 1,
initialization = "particlefilter",
algorithm = "CPF",
max_iterations
)
model |
a list representing a hidden Markov model, e.g. |
theta |
a vector of parameters as input to model functions |
discretization |
list containing stepsize, nsteps, statelength and obstimes |
observations |
a matrix of observations of size terminal_time x ydimension |
nparticles |
number of particles |
resampling_threshold |
ESS proportion below which resampling is triggered (always resample at observation times by default) |
initialization |
choice of distribution to initialize chains, such as |
algorithm |
character specifying type of algorithm desired, i.e.
|
max_iterations |
number of MCMC iterations |
a list with objects such as:
mcmcestimator
is the MCMC estimator of the discretized score;
cost
is the cost of the algorithm;
elapsedtime
is the time taken by the algorithm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.