View source: R/unbiased_scores.R
unbiased_discretized_score | R Documentation |
Computes unbiased estimator of the time-discretized score function.
unbiased_discretized_score(
model,
theta,
discretization,
observations,
nparticles,
resampling_threshold = 1,
coupled_resampling,
initialization = "particlefilter",
algorithm = "CPF",
k = 0,
m = 1,
max_iterations = Inf
)
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) |
coupled_resampling |
a 2-marginal coupled resampling scheme, such as |
initialization |
choice of distribution to initialize chains, such as |
algorithm |
character specifying type of algorithm desired, i.e.
|
k |
iteration at which to start averaging (default to 0) |
m |
iteration at which to stop averaging (default to 1) |
max_iterations |
iteration at which to stop the while loop (default to infinity) |
a list with objects such as:
mcmcestimator
is the MCMC estimator of the discretized score;
unbiasedestimator
is an unbiased estimator of the discretized score;
meetingtime
is the meeting time of the two chains at level;
iteration
is the number of iterations taken;
finished
indicates if the algorithm has completed successfully;
cost
is the cost of the algorithm in units of the CPF kernel at current discretization level;
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.