Learn R Programming

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

BAS (version 1.4.7)

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 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,380

Version

1.4.7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Merlise Clyde

Last Published

October 22nd, 2017

Functions in BAS (1.4.7)

Bernoulli.heredity

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

Generalized g-Prior Distribution for Coefficients in BMA Models
Hald

Hald Data
IC.prior

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

Find the global Empirical Bayes estimates for BMA
EB.local

Empirical Bayes Prior Distribution for Coefficients in BMA Model
BAS

BAS: Bayesian Model Averaging using Bayesian Adaptive Sampling
Bernoulli

Independent Bernoulli Prior Distribution for Models
Jeffreys

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

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

Coefficients of a Bayesian Model Average object
bayesglm.fit

Fitting Generalized Linear Models and Bayesian marginal likelihood evaluation
confint.pred.bas

Compute Credible (Bayesian Confidence) Intervals for a BAS predict object
beta.prime

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

Beta-Binomial Prior Distribution for Models
hypergeometric1F1

Confluent hypergeometric2F1 function
hypergeometric2F1

Gaussian hypergeometric2F1 function
confint.coef.bas

Compute Credible Intervals for BAS regression coefficients from BAS objects
diagnostics

BAS MCMC diagnostic plot.
eplogprob

eplogprob - Compute approximate marginal inclusion probabilities from pvalues
image.bas

Images of models used in Bayesian model averaging
bodyfat

Bodyfat Data
force.heredity.bas

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

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

Compound Confluent hypergeometric function of two variables
plot.bas

Plot Diagnostics for an BAS Object
bas.glm

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

Bayesian Adaptive Sampling for Bayesian Model Averaging and Variable Selection in Linear Models
eplogprob.marg

eplogprob.marg - Compute approximate marginal inclusion probabilities from pvalues
fitted.bas

Fitted values for a BAS BMA objects
list2matrix.bas

Coerce a BAS list object into a matrix.
list2matrix.which

Coerce a BAS list object into a matrix.
tr.beta.binomial

Truncated Beta-Binomial Prior Distribution for Models
tr.poisson

Truncated Poisson Prior Distribution for Models
plot.coef.bas

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

Plot Bayesian Confidence Intervals
robust

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

Summaries of Bayesian Model Averaging objects from BAS
cv.summary.bas

Summaries for Out of Sample Prediction
hyper.g

Hyper-g-Prior Distribution for Coefficients in BMA Models
hyper.g.n

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

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

Test based Bayes Factors for BMA Models
intrinsic

Intrinsic Prior Distribution for Coefficients in BMA Models
tr.power.prior

Truncated Power Prior Distribution for Models
uniform

Uniform Prior Distribution for Models
predict.bas

Prediction Method for an object of class BMA
predict.basglm

Prediction Method for an object of class basglm
print.bas

Print a Summary of Bayesian Model Averaging objects from BAS
protein

Protein Activity Data
update.bas

Update BAS object using a new prior
which.matrix

Coerce a BAS list object of models into a matrix.