Learn R Programming

⚠️There's a newer version (2.0.2) of this package.Take me there.

BAS (version 1.4.5)

Bayesian Model Averaging using Bayesian Adaptive Sampling

Description

Package for Bayesian Model Averaging in linear models and generalized linear models using stochastic or deterministic sampling without replacement from posterior distributions. Prior distributions on coefficients are from Zellner's g-prior or mixtures of g-priors corresponding to the Zellner-Siow Cauchy Priors or the mixture of g-priors from Liang et al (2008) for linear models or mixtures of g-priors in GLMs of Li and Clyde (2015) . Other model selection criteria include AIC, BIC and Empirical Bayes estimates of g. Sampling probabilities may be updated based on the sampled models using Sampling w/out Replacement or an efficient MCMC algorithm samples models using the BAS tree structure as an efficient hash table. Uniform priors over all models or beta-binomial prior distributions on model size are allowed, and for large p truncated priors on the model space may be used. The user may force variables to always be included. Details behind the sampling algorithm are provided in Clyde, Ghosh and Littman (2010) . This material is based upon work supported by the National Science Foundation under Grant DMS-1106891. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

Copy Link

Version

Install

install.packages('BAS')

Monthly Downloads

1,886

Version

1.4.5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Merlise Clyde

Last Published

March 31st, 2017

Functions in BAS (1.4.5)

Hald

Hald Data
Jeffreys

Jeffreys Prior Distribution for $g$ for Mixtures of g-Priors for
intrinsic

Intrinsic Prior Distribution for Coefficients in BMA Models
tr.beta.binomial

Truncated Beta-Binomial Prior Distribution for Models
tr.power.prior

Truncated Power Prior Distribution for Models
EB

Empirical Bayes Prior Distribution for Coefficients in BMA Model
uniform

Uniform Prior Distribution for Models
bayesglm.fit

Fitting Generalized Linear Models and Bayesian marginal likelihood evaluation
list2matrix.bas

Coerce a BAS list object into a matrix
TG

Generalized g-Prior Distribution for Coefficients in BMA Models
Bernoulli

Independent Bernoulli Prior Distribution for Models
EB.global

Finds the global Empirical Bayes estimates for BMA
BAS-package

Bayesian Model Averaging using Bayesian Adaptive Sampling
bas.glm

Bayesian Adaptive Sampling Without Replacement for Variable Selection in Generalized Linear Models
bas.lm

Bayesian Adaptive Sampling Without Replacement for Variable
beta.binomial

Beta-Binomial Prior Distribution for Models
CCH

Generalized g-Prior Distribution for Coefficients in BMA Models
IC.prior

Information Criterion Families of Prior Distribution for Coefficients in BMA Models
confint.coef.bas

Credible Intervals for BMA coefficients
confint.pred.bas

Compute Credible (Bayesian Confidence) Intervals for a BAS predict object
cv.summary.bas

Summaries for Out of Sample Prediction
beta.prime

Beta-Prime Prior Distribution for Coefficients in BMA Model
coef.bas

Coefficients of a Bayesian Model Average object
bin2int

Convert binary model representation into an integer
bodyfat

Bodyfat Data
diagnostics

BAS MCMC diagnostic plot
hyper.g.n

Generalized hyper-g/n Prior Distribution for g for mixtures of
hypergeometric2F1

Gaussian hypergeometric2F1 function
hyper.g

Hyper-g-Prior Distribution for Coefficients in BMA Models
phi1

Compound Confluent hypergeometric function of two variables
eplogprob.marg

eplogprob.marg - Compute approximate marginal inclusion probabilities
eplogprob

eplogprob - Compute approximate marginal inclusion probabilities
g.prior

Families of G-Prior Distribution for Coefficients in BMA Models
fitted.bas

Fitted values for a BAS BMA objects
hypergeometric1F1

Confluent hypergeometric2F1 function
plot.coef.bas

Plots the posterior distributions of coefficients derived from Bayesian model averaging
predict.bas

Prediction Method for an object of class BMA
plot.confint.bas

Plot Bayesian Confidence Intervals
plot.bas

Plot Diagnostics for an BAS Object
protein

Protein Activity Data
image.bas

Images of models used in Bayesian model averaging
predict.basglm

Prediction Method for an object of class basglm
tr.poisson

Truncated Poisson Prior Distribution for Models
testBF.prior

Test based Bayes Factors for BMA Models
robust

Robust-Prior Distribution for Coefficients in BMA Model
update.bas

Update BMA object using a new prior
tCCH

Generalized tCCH g-Prior Distribution for Coefficients in BMA Models
summary.bas

Summaries of Bayesian Model Averaging objects from BAS