Description Usage Arguments Value
View source: R/unbiased_increment.R
Generate four coupled chains and compute the estimator of the increment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | unbiased_increment(
level,
rinit,
single_kernel,
coupled2_kernel,
coupled4_kernel,
proposal_coupling2,
proposal_coupling4,
tuning,
tuning_coarse,
tuning_fine,
h = function(l, x) x,
k = 0,
m = 1,
max_iterations = Inf,
sampling_factor = 0.2
)
|
level |
an integer that determines the target probability distributions of four chains |
rinit |
function that is utilized for initialization of chains (for instance, samples from prior) |
single_kernel |
a function that makes a single step through a specified MCMC kernel for a single chain |
coupled2_kernel |
a function that makes a single step through a specified coupled MCMC kernel for all four chains |
proposal_coupling2 |
a function that generates proposal for a given input for two coupled chains (burn-in + lag) |
proposal_coupling4 |
a function that generates proposal for a given input for four coupled chains (main run) |
tuning |
a list of parameters required for MCMC iterations (for instance standard deviation for RWM) |
tuning_coarse |
a list of parameters required for MCMC iterations for the coarse level (for instance standard deviation for RWM) |
tuning_fine |
a list of parameters required for MCMC iterations for the fine level (for instance standard deviation for RWM) |
h |
function that represents quantity of interest. Depends on level and spatial argument. |
k |
an integer: lower bound for time-averaging |
m |
an integer: upper bound for time-averaging |
max_iterations |
iteration at which to stop the while loop (default to infinity) |
samping_factor |
a real value that controls the magnitude of perturbation at the initialization step |
a list with the value of MCMC estimator without correction, value of Unbiased MCMC estimator, meeting time, value of iteration counter, flag that is "True" if chains have met before the iteration counter reached the value in max_iterations, cost of calculations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.