Learn R Programming

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

BAS (version 1.0.6)

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 Liang et al hyper-g priors (JASA 2008) or mixtures of g-priors in GLMS of Li and Clyde 2015. Other model selection criteria include AIC and BIC. Sampling probabilities may be updated based on the sampled models using Sampling w/out Replacement or an MCMC algorithm samples models using the BAS tree structure as an efficient hash table. Allows uniform or beta-binomial prior distributions on models, and may force variables to always be included.

Copy Link

Version

Install

install.packages('BAS')

Monthly Downloads

1,886

Version

1.0.6

License

GPL (>= 3)

Maintainer

Merlise Clyde

Last Published

October 27th, 2015

Functions in BAS (1.0.6)

bas.lm

Bayesian Adaptive Sampling Without Replacement for Variable Selection in Linear Models
coef.bma

Coefficients of a Bayesian Model Average object
beta.prime

Beta-Prime Prior Distribution for Coefficients in BMA Model
plot.bma

Plot Diagnostics for an blm Object
beta.binomial

Beta-Binomial Prior Distribution for Models
hypergeometric1F1

Confluent hypergeometric2F1 function
bas.glm

Bayesian Adaptive Sampling Without Replacement for Variable Selection in Generalized Linear Models
bayesglm.fit

Fitting Generalized Linear Models and Bayesian marginal likelihood evaluation
hyper.g

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

Empirical Bayes Prior Distribution for Coefficients in BMA Model
CCH

Generalized g-Prior Distribution for Coefficients in BMA Models
protein

Protein Activity Data
EB.global

Finds the global Empirical Bayes estimates for BMA
image.bma

Images of models used in Bayesian model averaging
robust

Robust-Prior Distribution for Coefficients in BMA Model
BAS-package

Bayesian Model Averaging using Bayesian Adaptive Sampling
fitted.bas

Fitted values for a BAS BMA objects
predict.bas

Prediction Method for an object of class BMA
g.prior

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

Gaussian hypergeometric2F1 function
eplogprob

eplogprob - Compute approximate marginal inclusion probabilities from pvalues
cv.summary.bma

Summaries for Out of Sample Prediction
IC.prior

Information Criterion Families of Prior Distribution for Coefficients in BMA Models
eplogprob.marg

eplogprob.marg - Compute approximate marginal inclusion probabilities from pvalues
uniform

Uniform Prior Distribution for Models
Hald

Hald Data
plot.coef.bma

Plots the posterior distributions of coefficients derived from Bayesian model averaging
update.bma

Update BMA object using a new prior
list2matrix.bma

Coerce a BMA list object into a matrix
summary.bas

Summaries of Bayesian Model Averaging objects from BAS
TG

Generalized g-Prior Distribution for Coefficients in BMA Models
bin2int

Convert binary model representation into an integer
Bernoulli

Independent Bernoulli Prior Distribution for Models
predict.basglm

Prediction Method for an object of class basglm