Package: BayesianTools 0.1.9

Florian Hartig

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

General-purpose MCMC and SMC samplers, as well as plots 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.

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

BayesianTools_0.1.9.tar.gz
BayesianTools_0.1.9.zip(r-4.7)BayesianTools_0.1.9.zip(r-4.6)BayesianTools_0.1.9.zip(r-4.5)
BayesianTools_0.1.9.tgz(r-4.6-x86_64)BayesianTools_0.1.9.tgz(r-4.6-arm64)BayesianTools_0.1.9.tgz(r-4.5-x86_64)BayesianTools_0.1.9.tgz(r-4.5-arm64)
BayesianTools_0.1.9.tar.gz(r-4.7-arm64)BayesianTools_0.1.9.tar.gz(r-4.7-x86_64)BayesianTools_0.1.9.tar.gz(r-4.6-arm64)BayesianTools_0.1.9.tar.gz(r-4.6-x86_64)
BayesianTools_0.1.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BayesianTools/json (API)
NEWS

# Install 'BayesianTools' in R:
install.packages('BayesianTools', repos = c('https://pecanproject.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/florianhartig/bayesiantools/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

bayesecological-modelsmcmcoptimizationsmcsystems-biologycpp

11.03 score 129 stars 8 packages 716 scripts 1.5k downloads 2 mentions 64 exports 108 dependencies

Last updated from:ffa631c30c. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK203
linux-devel-x86_64OK203
source / vignettesOK247
linux-release-arm64OK205
linux-release-x86_64OK234
macos-release-arm64OK162
macos-release-x86_64OK382
macos-oldrel-arm64OK128
macos-oldrel-x86_64OK280
windows-develOK245
windows-releaseOK155
windows-oldrelOK162
wasm-releaseOK122

Exports:applySettingsDefaultbridgesamplecalibrationTestcheckBayesianSetupconvertCodacorrelationPlotcreateBayesianSetupcreateBetaPriorcreateLikelihoodcreateMcmcSamplerListcreateMixWithDefaultscreatePosteriorcreatePriorcreatePriorDensitycreateProposalGeneratorcreateSmcSamplerListcreateTruncatedNormalPriorcreateUniformPriorDEDEzsDICDREAMDREAMzsgelmanDiagnosticsgenerateParallelExecutergenerateTestDensityMultiNormalgetCredibleIntervalsgetPanelsgetPossibleSamplerTypesgetPredictiveDistributiongetPredictiveIntervalsgetSamplegetVolumeGOFlikelihoodAR1likelihoodIidNormalMAPmarginalLikelihoodmarginalPlotmergeChainsMetropolisplotDiagnosticplotSensitivityplotTimeSeriesplotTimeSeriesResidualsplotTimeSeriesResultsrunMCMCsampleMetropolissmcSamplerstopParalleltestDensityBananatestDensityInfinitytestDensityMultiNormaltestDensityNormaltestLinearModeltracePlotTwalkupdateProposalGeneratorVSEMvsemCVSEMcreateLikelihoodVSEMcreatePARVSEMgetDefaultsWAIC

Dependencies:apeaskpassbase64encbootbridgesamplingBrobdingnagbslibcachemclicodacodetoolscommonmarkcpp11crosstalkcurldata.tableDHARMadigestdoParalleldplyrellipseemulatorevaluateexpmfarverfastmapfontawesomeforeachfsgapgap.datasetsgenericsggplot2gluegmmgtablehighrhtmltoolshtmlwidgetshttpuvhttrIDPmiscisobanditeratorsjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclelme4lmtestmagrittrMASSMatrixmemoisemgcvmimeminqamsmmvtnormnlmenloptrnumDerivopensslotelpillarpkgconfigplotlyplyrpromisespurrrqgamR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRdpackreformulasrlangrmarkdownS7sandwichsassscalesshinysourcetoolsstringistringrsurvivalsystibbletidyrtidyselecttinytextmvtnormutf8vctrsviridisLitewithrxfunxtableyamlzoo

Interfacing your model with R

Rendered fromInterfacingAModel.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2026-03-08
Started: 2019-07-31

Reference Manual for the BayesianTools R package

Rendered fromBayesianTools.Rmdusingknitr::rmarkdownon May 09 2026.

Last update: 2026-03-08
Started: 2016-12-26

Readme and manuals

Help Manual

Help pageTopics
Provides the default settings for the different samplers in runMCMCapplySettingsDefault
Simulation-based calibration testscalibrationTest
Checks if an object is of class 'BayesianSetup'checkBayesianSetup
Convert coda::mcmc objects to BayesianTools::mcmcSamplerconvertCoda
Flexible function to create correlation density plotscorrelationPlot
Creates a standardized collection of prior, likelihood and posterior functions, including error checks etc.createBayesianSetup
Convenience function to create a beta priorcreateBetaPrior
Creates a standardized likelihood classcreateLikelihood
Convenience function to create an object of class mcmcSamplerList from a list of mcmc samplerscreateMcmcSamplerList
Allows to mix a given parameter vector with a default parameter vectorcreateMixWithDefaults
Creates a standardized posterior classcreatePosterior
Creates a user-defined prior classcreatePrior
Fits a density function to a multivariate samplecreatePriorDensity
Factory that creates a proposal generatorcreateProposalGenerator
Convenience function to create an object of class SMCSamplerList from a list of mcmc samplerscreateSmcSamplerList
Convenience function to create a truncated normal priorcreateTruncatedNormalPrior
Convenience function to create a simple uniform prior distributioncreateUniformPrior
Differential-Evolution MCMCDE
Differential-Evolution MCMC zsDEzs
Deviance information criterionDIC
DREAMDREAM
DREAMzsDREAMzs
Gelman DiagnosticsgelmanDiagnostics
Factory to generate a parallel executor of an existing functiongenerateParallelExecuter
Multivariate normal likelihoodgenerateTestDensityMultiNormal
Calculate confidence region from an MCMC or similar samplegetCredibleIntervals
Creates a DHARMa objectgetDharmaResiduals
getPanelsgetPanels
Returns possible sampler typesgetPossibleSamplerTypes
Calculates predictive distribution based on the parametersgetPredictiveDistribution
Calculates Bayesian credible (confidence) and predictive intervals based on parameter samplegetPredictiveIntervals
Extracts samples from a bayesianOutputgetSample getSample.data.frame getSample.double getSample.integer getSample.list getSample.matrix getSample.MCMC getSample.mcmc getSample.mcmc.list getSample.mcmcSampler getSample.mcmcSamplerList getSample.MCMC_refClass getSample.smcSampler
Calculate posterior volumegetVolume
Standard GOF metrics Startvalues for sampling with nrChains > 1 : if you want to provide different start values for the different chains, provide a listGOF
AR1 type likelihood functionlikelihoodAR1
Normal / Gaussian Likelihood functionlikelihoodIidNormal
Calculates the Maximum APosteriori value (MAP)MAP
Calculated the marginal likelihood from a set of MCMC samplesmarginalLikelihood
Plot MCMC marginalsmarginalPlot
Merge ChainsmergeChains
Creates a Metropolis-type MCMC with options for covariance adaptation, delayed rejection, Metropolis-within-Gibbs, and temperingMetropolis
Plots of MCMC outputplot.mcmcSampler plot.mcmcSamplerList
Plots of smcSampler outputplot.smcSampler plot.smcSamplerList
Diagnostic PlotplotDiagnostic
One-factor-at-a-time sensitivity plotplotSensitivity
Plots a time series, with the option to include confidence and prediction bandplotTimeSeries
Plots residuals of a time seriesplotTimeSeriesResiduals
Creates a time series plot typical for an MCMC / SMC fitplotTimeSeriesResults
Print an object of BayesianSetupprint.BayesianSetup
Prints MCMC outputprint.mcmcSampler print.mcmcSamplerList
Print object of prior classprint.prior
Print of smcSampler outputprint.smcSampler print.smcSamplerList
Main wrapper function to start MCMCs, particle MCMCs and SMCsrunMCMC
SMC samplersmcSampler
Function to close cluster in BayesianSetupstopParallel
Summmary of MCMC outputsummary.mcmcSampler summary.mcmcSamplerList
Summary for class 'smcSampler'summary.smcSampler summary.smcSamplerList
Banana-shaped density functiontestDensityBanana
GelmanMeng test functiontestDensityGelmanMeng
Test function infinity raggedtestDensityInfinity
3d Mutivariate Normal likelihoodtestDensityMultiNormal
Normal likelihoodtestDensityNormal
Fake model, returns a ax + b linear response to 2-param vectortestLinearModel
Trace plot for MCMC classtracePlot
T-walk MCMCTwalk
To update settings of an existing proposal geneneratorupdateProposalGenerator
Very simple ecosystem modelVSEM
C version of the VSEM modelvsemC
Create an example dataset, and from that a likelihood or posterior for the VSEM modelVSEMcreateLikelihood
Create a random radiation (PAR) time seriesVSEMcreatePAR
returns the default values for the VSEMVSEMgetDefaults
calculates the WAICWAIC