rbacon (version 2.4.2)

Baconvergence: Test to identify poorly mixed MCMC runs.

Description

Test how well-mixed and converged the MCMC runs are with the chosen core and settings, by running the core several times and comparing the different runs using the Gelman and Rubin Reduction factor (Brooks and Gelman, 1998).

Usage

Baconvergence(core = "MSB2K", runs = 5, suggest = FALSE, verbose = TRUE, ...)

Arguments

core

Name of the core, given using quotes. Defaults to one of the cores provided with rbacon, core="MSB2K".

runs

Amount of runs to test for mixing. Default runs=5.

suggest

If initial analysis of the data indicates abnormally slow or fast accumulation rates, Bacon will suggest to change the prior.

verbose

Provide feedback on what is happening (default verbose=TRUE).

...

additional options that can be given to the Bacon function.

Value

NA

Details

Generally Bacon will perform millions of MCMC iterations for each age-model run, although only a fraction of these will be stored. In most cases the remaining MCMC iterations will be well mixed (the upper left panel of the fit of the iterations shows no strange features such as sudden systematic drops or rises). However if the iterations seem not well mixed, or if too few remain (say less than a few hundred), then you could check the Gelman and Rubin Reduction Factor. Too high differences (high Factors) between runs indicate poor MCMC mixing. Robust MCMC mixing is indicated by a Gelman and Rubin Reduction factor (Brooks and Gelman, 1998) below the 1.05 safety threshold.

References

Blaauw, M. and Christen, J.A., Flexible paleoclimate age-depth models using an autoregressive gamma process. Bayesian Anal. 6 (2011), no. 3, 457--474. https://projecteuclid.org/euclid.ba/1339616472 Brooks, SP. and Gelman, A. (1998) General methods for monitoring convergence of iterative simulations. _Journal of Computational and Graphical Statistics, *7*, 434-455.

See Also

http://www.qub.ac.uk/chrono/blaauw/manualBacon_2.3.pdf

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
    Baconvergence(runs=2, ssize=100, coredir=tempfile()) # a quick-and-dirty toy example
  
# }

Run the code above in your browser using DataCamp Workspace