CTV Bayesian
CTV Bayesian
html
Maintainer: Jong Hee Park, Michela Cameletti, Xun Pang, Kevin M. Quinn
Contact: jongheepark at snu.ac.kr
Version: 2023-07-17
URL: https://CRAN.R-project.org/view=Bayesian
Source: https://github.com/cran-task-views/Bayesian/
Contributions: Suggestions and improvements for this task view are very welcome and
can be made through issues or pull requests on GitHub or via e-mail to
the maintainer address. For further details see the Contributing guide.
Citation: Jong Hee Park, Michela Cameletti, Xun Pang, Kevin M. Quinn (2023).
CRAN Task View: Bayesian Inference. Version 2023-07-17. URL https://
CRAN.R-project.org/view=Bayesian.
Installation: The packages from this task view can be installed automatically using the
ctv package. For example, ctv::install.views("Bayesian", coreOnly =
TRUE) installs all the core packages or ctv::update.views("Bayesian")
installs all packages that are not yet installed and up-to-date. See the
CRAN Task View Initiative for more details.
• The arm package contains R functions for Bayesian inference using lm, glm, mer
and polr objects.
• BACCO is an R bundle for Bayesian analysis of random functions. BACCO contains
three sub-packages: emulator, calibrator, and approximator, that perform Bayesian
emulation and calibration of computer programs.
• bayesforecast provides various functions for Bayesian time series analysis using
‘Stan’ for full Bayesian inference. A wide range of distributions and models are
supported, allowing users to fit Seasonal ARIMA, ARIMAX, Dynamic Harmonic
Regression, GARCH, t-student innovation GARCH models, asymmetric GARCH,
Random Walks, stochastic volatility models for univariate time series.
• bayesm provides R functions for Bayesian inference for various models widely used
in marketing and micro-econometrics. The models include linear regression models,
1 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
• The nimble package provides a general MCMC system that allows customizable
MCMC for models written in the BUGS/JAGS model language. Users can choose
samplers and write new samplers. Models and samplers are automatically compiled
via generated C++. The package also supports other methods such as particle
filtering or whatever users write in its algorithm language.
Application-Specific Packages
ANOVA
2 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
• dbarts fits Bayesian additive regression trees (Chipman, George, and McCulloch
2010).
• The bartBMA (archived) offers functions for Bayesian additive regression trees
using Bayesian model averaging.
• bartCause contains a variety of methods to generate typical causal inference
estimates using Bayesian Additive Regression Trees (BART) as the underlying
regression model (Hill 2012).
• bartcs fits Bayesian Regression Additive Trees (BART) models to select true
confounders from a large set of potential confounders and to estimate average
treatment effect (Kim et al. 2023).
Causal inference
3 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
• baycn is a package for a Bayesian hybrid approach for inferring Directed Acyclic
Graphs (DAGs) for continuous, discrete, and mixed data.
• BayesTree implements BART (Bayesian Additive Regression Trees) by Chipman,
George, and McCulloch (2006).
• BDgraph provides statistical tools for Bayesian structure learning in undirected
graphical models for multivariate continuous, discrete, and mixed data.
• blavaan fits a variety of Bayesian latent variable models, including confirmatory
factor analysis, structural equation models, and latent growth curve models.
• causact provides R functions for visualizing and running inference on generative
directed acyclic graphs (DAGs). Once a generative DAG is created, the package
automates Bayesian inference via the greta package and TensorFlow .
• CausalImpact implements a Bayesian approach to causal impact estimation in time
series, as described in Brodersen et al. (2015).
Computational methods
4 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
Discrete data
• ammiBayes offers flexible multi-environment trials analysis via MCMC method for
Additive Main Effects and Multiplicative Model (AMMI) for ordinal data.
• BANOVA includes functions for Hierarchical Bayes ANOVA models with normal
response, t response, Binomial (Bernoulli) response, Poisson response, ordered
multinomial response and multinomial response variables.
• The BART package provide flexible nonparametric modeling of covariates for
continuous, binary, categorical and time-to-event outcomes.
• bayesbr fits the beta regression model using Bayesian inference.
• BayesComm performs Bayesian multivariate binary (probit) regression models for
analysis of ecological communities.
• bayescopulareg provides tools for Bayesian copula generalized linear models
(GLMs).
• bayescount provides a set of functions to allow analysis of count data (such as faecal
egg count data) using Bayesian MCMC methods.
• BayesGWQS fits Bayesian grouped weighted quantile sum (BGWQS) regressions
for one or more chemical groups with binary outcomes.
• BayesLogit provides tools for sampling from the PolyaGamma distribution based on
Polson, Scott, and Windle (2013).
• The mlogitBMA Provides a modified function bic.glm() of the BMA package that
can be applied to multinomial logit (MNL) data.
• The MNP package fits multinomial probit models using MCMC methods.
• vbmp is a package for variational Bayesian multinomial probit regression with
Gaussian process priors. It estimates class membership posterior probability
employing variational and sparse approximation to the full posterior. This software
also incorporates feature weighting by means of Automatic Relevance
Determination.
• zic provides functions for an MCMC analysis of zero-inflated count models
including stochastic search variable selection.
• abtest provides functions for Bayesian A/B testing including prior elicitation options
based on Kass and Vaidyanathan (1992).
• acebayes finds optimal Bayesian experimental design using the approximate
coordinate exchange (ACE) algorithm.
• APFr implements a multiple testing approach to the choice of a threshold gamma on
the p-values using the Average Power Function (APF) and Bayes False Discovery
Rate (FDR) robust estimation.
• ashr implements an Empirical Bayes approach for large-scale hypothesis testing and
false discovery rate (FDR) estimation based on the methods proposed in Stephens
(2016).
• bamdit provides functions for Bayesian meta-analysis of diagnostic test data which
are based on a scale mixtures bivariate random-effects model.
• BASS is a package for Bayesian fitting and sensitivity analysis methods for adaptive
spline surfaces.
• The bayefdr implements the Bayesian FDR control described by Newton et al.
(2004).
5 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
• The bayesAB provides a suite of functions that allow the user to analyze A/B test
data in a Bayesian framework.
• BayesCombo combines diverse evidence across multiple studies to test a high level
scientific theory. The methods can also be used as an alternative to a standard meta-
analysis.
• bayesmeta is an R package to perform meta-analyses within the common random-
effects model framework.
• bspmma is a package for Bayesian semiparametric models for meta-analysis.
• CPBayes performs a Bayesian meta-analysis method for studying cross-phenotype
genetic associations.
• openEBGM calculates Empirical Bayes Geometric Mean (EBGM) and quantile
scores from the posterior distribution using the Gamma-Poisson Shrinker (GPS)
model to find unusually large cell counts in large, sparse contingency tables.
Graphics
Hierarchical models
6 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
Missing data
Mixture models
7 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
Quantile regression
• basad provides a Bayesian variable selection approach using continuous spike and
slab prior distributions.
• BayesGPfit performs Bayesian inferences on nonparametric regression via Gaussian
Processes with a modified exponential square kernel using a basis expansion
approach.
• BayesianGLasso implements a data-augmented block Gibbs sampler for simulating
the posterior distribution of concentration matrices for specifying the topology and
parameterization of a Gaussian Graphical Model (GGM).
• BLR provides R functions to fit parametric regression models using different types
of shrinkage methods.
• BNSP is a package for Bayeisan non- and semi-parametric model fitting. It handles
Dirichlet process mixtures and spike-slab for multivariate (and univariate) response
analysis, with nonparametric models for the means, the variances and the correlation
matrix.
• BoomSpikeSlab provides functions to do spike and slab regression via the stochastic
search variable selection algorithm. It handles probit, logit, poisson, and student T
data.
• bsamGP provides functions to perform Bayesian inference using a spectral analysis
of Gaussian process priors. Gaussian processes are represented with a Fourier series
based on cosine basis functions. Currently the package includes parametric linear
models, partial linear additive models with/without shape restrictions, generalized
linear additive models with/without shape restrictions, and density estimation model.
• spikeslab provides functions for prediction and variable selection using spike and
slab regression.
• spikeSlabGAM implements Bayesian variable selection, model choice, and
8 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
Spatial models
Survival models
• The BMA package has functions for Bayesian model averaging for linear models,
generalized linear models, and survival models. The complementary package
ensembleBMA uses the BMA package to create probabilistic forecasts of ensembles
using a mixture of normal distributions.
9 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
Other models
10 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
matrix.
• BayesCR proposes a parametric fit for censored linear regression models based on
SMSN distributions, from a Bayesian perspective.
• bayesdistreg implements Bayesian Distribution Regression methods. This package
contains functions for three estimators (non-asymptotic, semi-asymptotic and
asymptotic) and related routines for Bayesian Distribution Regression in Huang and
Tsyawo (2018).
• bayesDP provides functions for data augmentation using the Bayesian discount prior
method for single arm and two-arm clinical trials in Haddad et al. (2017).
• BayesFM provides a collection of procedures to perform Bayesian analysis on a
variety of factor models.
• BayesGOF performs four interconnected tasks: (i) characterizes the uncertainty of
the elicited parametric prior; (ii) provides exploratory diagnostic for checking prior-
data conflict; (iii) computes the final statistical prior density estimate; and (iv)
executes macro- and micro-inference.
• Bayesiangammareg adjusts the Gamma regression models from a Bayesian
perspective described by Cepeda and Urdinola (2012).
• BayesLCA performs Bayesian Latent Class Analysis using several different
methods.
• BayesMallows performs Bayesian preference learning with the Mallows rank model.
• BayesMassBal is a package for Bayesian data reconciliation of separation processes.
• bayestestR provides utilities to describe posterior distributions and Bayesian models.
It includes point-estimates such as Maximum A Posteriori (MAP), measures of
dispersion (Highest Density Interval) and indices used for null-hypothesis testing
(such as ROPE percentage, pd and Bayes factors).
• coalescentMCMC provides a flexible framework for coalescent analyses in R.
• deBInfer provides R functions for Bayesian parameter inference in differential
equations using MCMC methods.
• densEstBayes provides Bayesian density estimates for univariate continuous random
samples are provided using the Bayesian inference engine paradigm.
• errum performs a Bayesian estimation of the exploratory reduced reparameterized
unified model (ErRUM). rrum implements Gibbs sampling algorithm for Bayesian
estimation of the Reduced Reparameterized Unified Model (rrum).
• FME provides functions to help in fitting models to data, to perform Monte Carlo,
sensitivity and identifiability analysis. It is intended to work with models be written
as a set of differential equations that are solved either by an integration routine from
deSolve, or a steady-state solver from rootSolve.
• The gbayes() function in Hmisc derives the posterior (and optionally) the predictive
distribution when both the prior and the likelihood are Gaussian, and when the
statistic of interest comes from a two-sample problem.
• The hbsae package provides functions to compute small area estimates based on a
basic area or unit-level model. The model is fit using restricted maximum likelihood,
or in a hierarchical Bayesian way.
• mombf performs model selection based on non-local priors, including MOM,
eMOM and iMOM priors..
• prevalence provides functions for the estimation of true prevalence from apparent
prevalence in a Bayesian framework. MCMC sampling is performed via JAGS/rjags.
• PReMiuM is a package for profile regression, which is a Dirichlet process Bayesian
11 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
12 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
Post-estimation tools
• BaM provide functions and datasets for “Bayesian Methods: A Social and
Behavioral Sciences Approach” by Jeff Gill (Chapman and Hall/CRC,
2002/2007/2014).
• BayesDA provides R functions and datasets for “Bayesian Data Analysis, Second
Edition” (CRC Press, 2003) by Andrew Gelman, John B. Carlin, Hal S. Stern, and
Donald B. Rubin.
• The Bolstad package contains a set of R functions and data sets for the book
Introduction to Bayesian Statistics, by Bolstad, W.M. (2007).
• The LearnBayes package contains a collection of functions helpful in learning the
basic tenets of Bayesian statistical inference. It contains functions for summarizing
basic one and two parameter posterior distributions and predictive distributions and
MCMC algorithms for summarizing posterior distributions defined by the user. It
also contains functions for regression models, hierarchical models, Bayesian tests,
and illustrations of Gibbs sampling.
13 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
repository.
• brms implements Bayesian multilevel models in R using Stan. A wide range of
distributions and link functions are supported, allowing users to fit linear, robust
linear, binomial, Poisson, survival, response times, ordinal, quantile, zero-inflated,
hurdle, and even non-linear models all in a multilevel context. shinybrms is a
graphical user interface (GUI) for fitting Bayesian regression models using the
package brms.
• greta allows users to write statistical models in R and fit them by MCMC and
optimisation on CPUs and GPUs, using Google ‘TensorFlow’ . greta lets you write
your own model like in BUGS, JAGS and Stan, except that you write models right in
R, it scales well to massive datasets, and it is easy to extend and build on.
• There are two packages that can be used to interface R with WinBUGS.
R2WinBUGS provides a set of functions to call WinBUGS on a Windows system
and a Linux system.
• There are three packages that provide R interface with Just Another Gibbs Sampler
(JAGS) : rjags, R2jags, and runjags.
• All of these BUGS engines use graphical models for model specification. As such,
the GraphicalModels task view may be of interest.
• rstan provides R functions to parse, compile, test, estimate, and analyze Stan models
by accessing the header-only Stan library provided by the `StanHeaders’ package.
The Stan project develops a probabilistic programming language that implements
full Bayesian statistical inference via MCMC and (optionally penalized) maximum
likelihood estimation via optimization.
• rstanarm estimates previously compiled regression models using the rstan package,
which provides the R interface to the Stan C++ library for Bayesian estimation.
• pcFactorStan provides convenience functions and pre-programmed Stan models
related to the paired comparison factor model. Its purpose is to make fitting paired
comparison data using Stan easy.
The Bayesian Inference Task View is written by Jong Hee Park (Seoul National University,
South Korea), Andrew D. Martin (Washington University in St. Louis, MO, USA), and
Kevin M. Quinn (UC Berkeley, Berkeley, CA, USA). Please e-mail the maintainer with
suggestion or by submitting an issue or pull request in the GitHub repository linked above.
CRAN packages
Core: arm, BACCO, bayesforecast, bayesm, boa, coda, mcmc, MCMCpack, nimble.
Regular: abc, abcrf, abglasso, abtest, acebayes, AdMit, ammiBayes, AnaCoDa, AovBay,
APFr, ArchaeoChron, ashr, BACCT, baggr, bain, BaM, bama, bamdit, bamlss,
bang, BANOVA, BART, bartCause, bartcs, bartMachine, BAS, basad,
basicMCMCplots, BaSkePro, BASS, baycn, bayefdr, bayes4psy, bayesAB,
bayesammi, bayesanova, BayesARIMAX, BayesBinMix, bayesbio, bayesboot,
BayesBP, bayesbr, BayesCACE, BayesCombo, BayesComm, bayescopulareg,
bayescount, BayesCR, bayesCT, BayesCTDesign, BayesDA, bayesDccGarch,
bayesdfa, bayesdistreg, bayesDP, BayesFactor, BayesFM, bayesGAM,
bayesGARCH, BayesGOF, BayesGPfit, BayesGWQS, bayesian,
bayesianETAS, Bayesiangammareg, BayesianGLasso, BayesianLaterality,
BayesianNetwork, BayesianTools, bayesImageS, BayesLCA, bayesLife,
BayesLN, BayesLogit, bayeslongitudinal, BayesMallows, BayesMassBal,
14 of 15 17/02/2024, 17:21
CRAN Task View: Bayesian Inference https://cran.r-project.org/web/views/Bayesian.html
Related links
Other resources
15 of 15 17/02/2024, 17:21