General-Purpose MCMC and SMC Samplers and Tools for Bayesian Statistics

General-purpose MCMC and SMC samplers, as well as plot and diagnostic functions for Bayesian statistics, with a particular focus on calibrating complex system models. Implemented samplers include various Metropolis MCMC variants (including adaptive and/or delayed rejection MH), the T-walk, two differential evolution MCMCs, two DREAM MCMCs, and a sequential Monte Carlo (SMC) particle filter.


NOTE: for more news about the package, see

BayesianTools 0.1.4


  • added bridge sampling to ML
  • added support for Nimble output objects
  • extended options for plotMarginals


  • numerical instability in T-Walk, added a warning for now, will hopefully be fixed soon

BayesianTools 0.1.3


  • created compatibility to new Rcpp standard


  • getSample extended to coda objects, so that all plot functions can also be used on coda objects
  • plotTimeSeriesResults now includes the option to create residual plots from posterior predictive simulations, calling the DHARMa package
  • added new utitility functions sampleEquallySpaced and correctThin


  • IMPORTANT: fixed a bug in createPriorDensity - results with createPriorDensity prior to this bugfix may be unrealiable
  • getSample now corrects wrong inputs for thin and numSamples instead of throwing an error
  • smaller bugfixes in plot functions

BayesianTools 0.1.2


  • various smaller improvement / bugfixes in getSample, plot functions / Help (0.1.2)
  • warnings / bugfixes associated to burnin arguments (
  • bugfix in marginal plots (

BayesianTools 0.1.1

Mostly a bugfix release

Minor changes

  • implemented method for estimating posterior volume (
  • implemented GOF (


  • removed erroneously created help files (
  • dynload change to conform to R 3.4.x requirements (0.1.1)
  • smaller bugxfixes and help updates (0.1.1)

BayesianTools 0.1.0

  • initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.4 by Florian Hartig, 5 months ago

Report a bug at

Browse source code at

Authors: Florian Hartig [aut, cre], Francesco Minunno [aut], Stefan Paul [aut], David Cameron [ctb], Tankred Ott [ctb]

Documentation:   PDF Manual  

CC BY-SA 4.0 license

Imports coda, emulator, mvtnorm, tmvtnorm, IDPmisc, Rcpp, ellipse, numDeriv, msm, MASS, Matrix, stats, utils, graphics, DHARMa, bridgesampling

Suggests DEoptim, lhs, sensitivity, knitr, rmarkdown, roxygen2, testthat, gap

Linking to Rcpp

See at CRAN