Bayesian Inference of SDE
Methods for posterior inference of states and parameters.
## S3 method for class 'ssm_sde' run_mcmc( model, iter, particles, output_type = "full", mcmc_type = "is2", L_c, L_f, burnin = floor(iter/2), thin = 1, gamma = 2/3, target_acceptance = 0.234, S, end_adaptive_phase = FALSE, threads = 1, seed = sample(.Machine$integer.max, size = 1), ... )
model |
Model model. |
iter |
Number of MCMC iterations. |
particles |
Number of state samples per MCMC iteration. |
output_type |
Either |
mcmc_type |
What MCMC algorithm to use? Possible choices are
|
L_c, L_f |
Integer values defining the discretization levels for first and second stages (defined as 2^L). For PM methods, maximum of these is used. |
burnin |
Length of the burn-in period which is disregarded from the
results. Defaults to |
thin |
Thinning rate. Defaults to 1. Increase for large models in
order to save memory. For IS-corrected methods, larger
value can also be statistically more effective.
Note: With |
gamma |
Tuning parameter for the adaptation of RAM algorithm. Must be between 0 and 1 (not checked). |
target_acceptance |
Target acceptance ratio for RAM. Defaults to 0.234. For DA-MCMC, this corresponds to first stage acceptance rate, i.e., the total acceptance rate will be smaller. |
S |
Initial value for the lower triangular matrix of RAM algorithm, so that the covariance matrix of the Gaussian proposal distribution is SS'. Note that for some parameters (currently the standard deviation and dispersion parameters of bsm_ng models) the sampling is done for transformed parameters with internal_theta = log(theta). |
end_adaptive_phase |
If |
threads |
Number of threads for state simulation. |
seed |
Seed for the random number generator. |
... |
Ignored. |
Vihola, M, Helske, J, Franks, J. Importance sampling type estimators based on approximate marginal Markov chain Monte Carlo. Scand J Statist. 2020; 1– 38. https://doi.org/10.1111/sjos.12492
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.