BMS: Bayesian Model Averaging Library

Bayesian model averaging for linear models with a wide choice of (customizable) priors. Built-in priors include coefficient priors (fixed, flexible and hyper-g priors), 5 kinds of model priors, moreover model sampling by enumeration or various MCMC approaches. Post-processing functions allow for inferring posterior inclusion and model probabilities, various moments, coefficient and predictive densities. Plotting functions available for posterior model size, MCMC convergence, predictive and coefficient densities, best models representation, BMA comparison.

Install the latest version of this package by entering the following in R:
AuthorMartin Feldkircher and Stefan Zeugner
Date of publication2015-11-24 07:46:29
MaintainerStefan Zeugner <>

View on CRAN

Man pages

as.zlm: Extract a Model from a bma Object

beta.draws.bma: Coefficients of the Best Models

bin2hex: Converting Binary Code to and from Hexadecimal Code

bma-class: Class "bma"

bms: Bayesian Model Sampling and Averaging

BMS-internal: Internal BMS objects

BMS-package: Bayesian Model Sampling 0.3.4

c.bma: Concatenate bma objects

coef.bma: Posterior Inclusion Probabilities and Coefficients from a...

datafls: FLS (2001) growth data

density.bma: Coefficient Marginal Posterior Densities

f21hyper: Gaussian Hypergeometric Function F(a,b,c,z)

fullmodel.ssq: OLS Statistics for the Full Model Including All Potential...

gdensity: Posterior Density of the Shrinkage Factor

gprior-class: Class "gprior"

image.bma: Plot Signs of Best Models

is.bma: Tests for a 'bma' Object

lps.bma: Log Predictive Score

mprior-class: Class "mprior"

plot.bma: Plot Posterior Model Size and Model Probabilities

plotComp: Compare Two or More bma Objects

plotConv: Plot Convergence of BMA Sampler

plotModelsize: Plot Model Size Distribution

plot.pred.density: Predictive Densities for bma Objects

pmp.bma: Posterior Model Probabilities

pmpmodel: Posterior Model Probability for any Model

post.var: Posterior Variance and Deviance

pred.density: Predictive Densities for bma Objects

predict.bma: Predict Method for bma Objects

predict.zlm: Predict Method for zlm Linear Model

print.bma: Printing bma Objects

print.topmod: Printing topmod Objects

quantile.pred.density: Extract Quantiles from 'density' Objects

summary.bma: Summary Statistics for a 'bma' Object

summary.zlm: Summarizing Linear Models under Zellner's g

topmod: Topmodel Object

topmod-class: Class "topmod"

topmodels.bma: Model Binaries and their Posterior model Probabilities

variable.names.bma: Variable names and design matrix

variable.names.zlm: Variable names and design matrix

z[.bma: Extract Parts of a topmod Object

zlm: Bayesian Linear Model with Zellner's g

zlm-class: Class '"zlm"'


.addup.enum Man page
.addup.enum.wotherstats Man page
.addup.mcmc Man page
.addup.mcmc.wotherstats Man page
.adjustdots Man page
.arglist Man page
.arglist.matchenvir Man page
as.zlm Man page
beta.draws.bma Man page
bin2hex Man page
[.bma Man page
bma-class Man page
bms Man page
BMS Man page
BMS-package Man page
c.bma Man page
.choose.gprior Man page
.choose.mprior Man page
coef.bma Man page
combine_chains Man page
.constr.intmat Man page
.construct.arglist Man page
.cor.topmod Man page
datafls Man page
density.bma Man page
density.zlm Man page
deviance.bma Man page
deviance.zlm Man page
.enum_fromindex Man page
estimates.bma Man page
.f21_4hyperg Man page
f21hyper Man page
.f21simple Man page
.fixedset.mprior Man page
.fixedset.sampler Man page
.fls.samp Man page
fullmodel.ssq Man page
gdensity Man page
.getpolycoefs Man page
gprior-class Man page
.gprior.constg.init Man page
.gprior.eblocal.init Man page
.gprior.hyperg.init Man page
hex2bin Man page
.hexcode.binvec.convert Man page
image.bma Man page
info.bma Man page
is.bma Man page
is.topmod Man page
.iterenum Man page
.iterenum.bone Man page
.iterenum.KgtN Man page
logLik.zlm Man page
lps.bma Man page
model.frame.bma Man page
mprior-class Man page
.mprior.customk.init Man page
.mprior.fixedt.init Man page
.mprior.pip.init Man page
.mprior.randomt.init Man page
.mprior.uniform.init Man page
.ols.terms2 Man page
plot.bma Man page
plotComp Man page
plotConv Man page
plotModelsize Man page
plot.pred.density Man page
pmp.bma Man page
pmpmodel Man page
.post.beta.draws Man page
.post.calc Man page
.post.constant Man page
.post.estimates Man page
post.pr2 Man page
.post.topmod.bma Man page
.post.topmod.includes Man page
post.var Man page
pred.density Man page
pred.density-class Man page
predict.bma Man page
predict.zlm Man page
print.bma Man page
print.pred.density Man page
print.topmod Man page
quantile.coef.density Man page
.quantile.density Man page
quantile.density Man page
quantile.pred.density Man page
.rev.jump Man page
.starter Man page
summary.bma Man page
summary.zlm Man page
.top10 Man page
topmod Man page
[.topmod Man page Man page
topmod-class Man page
topmodels.bma Man page
variable.names.bma Man page
variable.names.zlm Man page
vcov.zlm Man page
zlm Man page
zlm-class Man page


R/post.var.R R/info.bma.R R/bms.R R/predict.bma.R R/z[.topmod.R R/fullmodel.ssq.R R/is.bma.R R/zlm.R R/image.bma.R R/f21hyper.R R/beta.draws.bma.R R/model.frame.bma.R R/is.topmod.R R/bin2hex.R R/pmp.bma.R R/gdensity.R R/print.pred.density.R R/quantile.density.R R/plotConv.R R/lps.bma.R R/as.zlm.R R/BMS-internal.R R/print.topmod.R R/pred.density.R R/variable.names.zlm.R R/quantile.coef.density.R R/topmod.R R/deviance.bma.R R/deviance.zlm.R R/z[.bma.R R/logLik.zlm.R R/estimates.bma.R R/plotModelsize.R R/print.bma.R R/plot.bma.R R/summary.bma.R R/density.bma.R R/quantile.pred.density.R R/c.bma.R R/summary.zlm.R R/plotComp.R R/predict.zlm.R R/coef.bma.R R/post.pr2.R R/plot.pred.density.R R/pmpmodel.R R/topmodels.bma.R R/hex2bin.R R/density.zlm.R R/vcov.zlm.R R/variable.names.bma.R R/zzz.R R/combine_chains.R
man/beta.draws.bma.Rd man/bin2hex.Rd man/bms.Rd man/print.topmod.Rd man/pmp.bma.Rd man/bma-class.Rd man/predict.bma.Rd man/z[.bma.Rd man/is.bma.Rd man/print.bma.Rd man/plot.bma.Rd man/zlm-class.Rd man/topmodels.bma.Rd man/topmod.Rd man/datafls.Rd man/pred.density.Rd man/plotModelsize.Rd man/zlm.Rd man/gprior-class.Rd man/pmpmodel.Rd man/summary.bma.Rd man/predict.zlm.Rd man/BMS-package.Rd man/gdensity.Rd man/plotConv.Rd man/mprior-class.Rd man/fullmodel.ssq.Rd man/lps.bma.Rd man/post.var.Rd man/c.bma.Rd man/f21hyper.Rd man/variable.names.bma.Rd man/image.bma.Rd man/variable.names.zlm.Rd man/as.zlm.Rd man/topmod-class.Rd man/coef.bma.Rd man/summary.zlm.Rd man/plot.pred.density.Rd man/quantile.pred.density.Rd man/density.bma.Rd man/plotComp.Rd man/BMS-internal.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.