Learn R Programming

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

BAS (version 1.5.4)

Bayesian Variable Selection and Model Averaging using Bayesian Adaptive Sampling

Description

Package for Bayesian Variable Selection and 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 from Li and Clyde (2019) in generalized linear models. 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 which 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 to enforce sampling models that are full rank. The user may force variables to always be included in addition to imposing constraints that higher order interactions are included only if their parents are included in the model. 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,491

Version

1.5.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Merlise Clyde

Last Published

January 19th, 2020

Functions in BAS (1.5.4)

Bayes.outlier

Bayesian Outlier Detection
coef.bas

Coefficients of a Bayesian Model Average object
bodyfat

Bodyfat Data
beta.prime

Beta-Prime Prior Distribution for Coefficients in BMA Model
beta.binomial

Beta-Binomial Prior Distribution for Models
bayesglm.fit

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

Bayesian Adaptive Sampling for Bayesian Model Averaging and Variable Selection in Linear Models
confint.pred.bas

Compute Credible (Bayesian Confidence) Intervals for a BAS predict object
confint.coef.bas

Compute Credible Intervals for BAS regression coefficients from BAS objects
hypergeometric1F1

Confluent hypergeometric2F1 function
hyper.g.n

Generalized hyper-g/n Prior Distribution for g for mixtures of g-priors on Coefficients in BMA Models
eplogprob.marg

eplogprob.marg - Compute approximate marginal inclusion probabilities from pvalues
g.prior

Families of G-Prior Distribution for Coefficients in BMA Models
eplogprob

eplogprob - Compute approximate marginal inclusion probabilities from pvalues
hyper.g

Hyper-g-Prior Distribution for Coefficients in BMA Models
plot.coef.bas

Plots the posterior distributions of coefficients derived from Bayesian model averaging
protein

Protein Activity Data
plot.bas

Plot Diagnostics for an BAS Object
plot.confint.bas

Plot Bayesian Confidence Intervals
predict.bas

Prediction Method for an object of class BAS
robust

Robust-Prior Distribution for Coefficients in BMA Model
TG

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

Bayesian Adaptive Sampling Without Replacement for Variable Selection in Generalized Linear Models
diagnostics

BAS MCMC diagnostic plot
list2matrix.bas

Coerce a BAS list object into a matrix.
intrinsic

Intrinsic Prior Distribution for Coefficients in BMA Models
cv.summary.bas

Summaries for Out of Sample Prediction
tr.poisson

Truncated Poisson Prior Distribution for Models
predict.basglm

Prediction Method for an Object of Class basglm
force.heredity.bas

Post processing function to force constraints on interaction inclusion bas BMA objects
fitted.bas

Fitted values for a BAS BMA objects
tr.power.prior

Truncated Power Prior Distribution for Models
tr.beta.binomial

Truncated Beta-Binomial Prior Distribution for Models
image.bas

Images of models used in Bayesian model averaging
testBF.prior

Test based Bayes Factors for BMA Models
hypergeometric2F1

Gaussian hypergeometric2F1 function
variable.names.pred.bas

Extract the variable names for a model from a BAS prediction object
which.matrix

Coerce a BAS list object of models into a matrix.
print.bas

Print a Summary of Bayesian Model Averaging objects from BAS
list2matrix.which

Coerce a BAS list object into a matrix.
phi1

Compound Confluent hypergeometric function of two variables
uniform

Uniform Prior Distribution for Models
update.bas

Update BAS 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
EB.global

Find the global Empirical Bayes estimates for BMA
Jeffreys

Jeffreys Prior Distribution for $g$ for Mixtures of g-Priors for Coefficients in BMA Models
Hald

Hald Data
IC.prior

Information Criterion Families of Prior Distribution for Coefficients in BMA Models
EB.local

Empirical Bayes Prior Distribution for Coefficients in BMA Model
CCH

Generalized g-Prior Distribution for Coefficients in BMA Models
Bernoulli

Independent Bernoulli Prior Distribution for Models
BAS

BAS: Bayesian Model Averaging using Bayesian Adaptive Sampling
Bernoulli.heredity

Independent Bernoulli prior on models that with constraints for model hierarchy induced by interactions