Learn R Programming

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

BAS (version 1.0.9)

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.9

License

GPL (>= 3)

Maintainer

Merlise Clyde

Last Published

February 3rd, 2016

Functions in BAS (1.0.9)

bayesglm.fit

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

Fitted values for a BAS BMA objects
g.prior

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

Independent Bernoulli Prior Distribution for Models
CCH

Generalized g-Prior Distribution for Coefficients in BMA Models
list2matrix.bma

Coerce a BMA list object into a matrix
uniform

Uniform Prior Distribution for Models
coef.bma

Coefficients of a Bayesian Model Average object
IC.prior

Information Criterion Families of Prior Distribution for Coefficients in BMA Models
image.bma

Images of models used in Bayesian model averaging
bas.glm

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

Intrinsic Prior Distribution for Coefficients in BMA Models
hypergeometric2F1

Gaussian hypergeometric2F1 function
hypergeometric1F1

Confluent hypergeometric2F1 function
eplogprob.marg

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

Bayesian Adaptive Sampling Without Replacement for Variable Selection in Linear Models
tCCH

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

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

Plot Diagnostics for an blm Object
phi1

Compound Confluent hypergeometric function of two variables
EB.global

Finds the global Empirical Bayes estimates for BMA
TG

Generalized 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
beta.binomial

Beta-Binomial Prior Distribution for Models
summary.bas

Summaries of Bayesian Model Averaging objects from BAS
robust

Robust-Prior Distribution for Coefficients in BMA Model
bin2int

Convert binary model representation into an integer
Jeffreys

Jeffreys Prior Distribution for $g$ for Mixtures of g-Priors for Coefficients in BMA Models
plot.coef.bma

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

Summaries for Out of Sample Prediction
BAS-package

Bayesian Model Averaging using Bayesian Adaptive Sampling
EB

Empirical Bayes Prior Distribution for Coefficients in BMA Model
beta.prime

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

Prediction Method for an object of class BMA
eplogprob

eplogprob - Compute approximate marginal inclusion probabilities from pvalues
Hald

Hald Data
protein

Protein Activity Data
predict.basglm

Prediction Method for an object of class basglm
update.bma

Update BMA object using a new prior