Markov Chain Monte Carlo (MCMC) Package

Contains functions to perform Bayesian inference using posterior simulation for a number of statistical models. Most simulation is done in compiled C++ written in the Scythe Statistical Library Version 1.0.3. All models return 'coda' mcmc objects that can then be summarized using the 'coda' package. Some useful utility functions such as density functions, pseudo-random number generators for statistical distributions, a general purpose Metropolis sampling algorithm, and tools for visualization are provided.


Reference manual

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


1.5-0 by Jong Hee Park, 3 months ago

Browse source code at

Authors: Andrew D. Martin [aut] , Kevin M. Quinn [aut] , Jong Hee Park [aut,cre] , Ghislain Vieilledent [ctb] , Michael Malecki[ctb] , Matthew Blackwell [ctb] , Keith Poole [ctb] , Craig Reed [ctb] , Ben Goodrich [ctb] , Ross Ihaka [cph] , The R Development Core Team [cph] , The R Foundation [cph] , Pierre L'Ecuyer [cph] , Makoto Matsumoto [cph] , Takuji Nishimura [cph]

Documentation:   PDF Manual  

Task views: Bayesian Inference, Probability Distributions, Multivariate Statistics, Psychometric Models and Methods, Survival Analysis

GPL-3 license

Imports graphics, grDevices, lattice, methods, utils, mcmc, quantreg

Depends on coda, MASS, stats

System requirements: gcc (>= 4.0)

Imported by BHAI, BMTAR, BayesLCA, BayesMFSurv, BayesSPsurv, Bergm, CARBayes, CARBayesST, ConsReg, DPtree, HKprocess, HMMmlselect, HWEBayes, Hmsc, MBSGS, MCPAN, MHTcop, MixSIAR, NMADiagT, NSUM, PLMIX, PortRisk, Rdta, SizeEstimation, StVAR, Zelig, animalEKF, bayesDP, bayesmove, bayest, bgumbel, blavaan, coarseDataTools, dmbc, evolqg, fdrDiscreteNull, hdpGLM, hierarchicalDS, hmma, lchemix, llbayesireg, mHMMbayes, maxcombo, miWQS, miscF, mixAR, mvst, noncomplyR, ouxy, pmwg, popdemo, qgg, quokar, radmixture, sizeMat, sorocs, sparsereg, spikeSlabGAM, ssmsn.

Depended on by BayesESS, CoinMinD, DMRMark, INLAMSM, MBSP, NHMM, NetworkChange, PhViD, RSGHB, RxCEcolInf, SimpleTable, adaptsmoFMRI, anominate, bacr, bayespref, brxx, gset, hzar, manet, mbsts, optDesignSlopeInt, pCalibrate, robustsae, twl, uskewFactors.

Suggested by ADtools, BayesDA, BayesPostEst, DOBAD, MultiBD, Rlda, bayesanova, bridgesampling, dyn, frontier, greta, hmclearn, ivdoctr, pscl.

Enhanced by emmeans.

See at CRAN