Learn R Programming

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

BAS (version 1.2.1)

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 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 for large p truncated priors on the model space. The user may force variables to always be included.

Copy Link

Version

Install

install.packages('BAS')

Monthly Downloads

1,886

Version

1.2.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Merlise Clyde

Last Published

April 16th, 2016

Functions in BAS (1.2.1)

robust

Robust-Prior Distribution for Coefficients in BMA Model
beta.binomial

Beta-Binomial Prior Distribution for Models
plot.bas

Plot Diagnostics for an BAS Object
BAS-package

Bayesian Model Averaging using Bayesian Adaptive Sampling
tr.poisson

Truncated Poisson Prior Distribution for Models
protein

Protein Activity Data
eplogprob.marg

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

Hald Data
bin2int

Convert binary model representation into an integer
bas.lm

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

eplogprob - Compute approximate marginal inclusion probabilities from pvalues
coef.bma

Coefficients of a Bayesian Model Average object
uniform

Uniform Prior Distribution for Models
phi1

Compound Confluent hypergeometric function of two variables
TG

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

Prediction Method for an object of class BMA
beta.prime

Beta-Prime Prior Distribution for Coefficients in BMA Model
hyper.g.n

Generalized hyper-g/n Prior Distribution for g for mixtures of g-priors on Coefficients in BMA Models
cv.summary.bma

Summaries for Out of Sample Prediction
intrinsic

Intrinsic Prior Distribution for Coefficients in BMA Models
Jeffreys

Jeffreys Prior Distribution for $g$ for Mixtures of g-Priors for Coefficients in BMA Models
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
fitted.bas

Fitted values for a BAS BMA objects
CCH

Generalized g-Prior Distribution for Coefficients in BMA Models
EB.global

Finds the global Empirical Bayes estimates for BMA
hypergeometric2F1

Gaussian hypergeometric2F1 function
tCCH

Generalized tCCH g-Prior Distribution for Coefficients in BMA Models
tr.beta.binomial

Truncated Beta-Binomial Prior Distribution for Models
IC.prior

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

Update BMA object using a new prior
hyper.g

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

Empirical Bayes Prior Distribution for Coefficients in BMA Model
plot.coef.bma

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

Images of models used in Bayesian model averaging
summary.bas

Summaries of Bayesian Model Averaging objects from BAS
Bernoulli

Independent Bernoulli Prior Distribution for Models
hypergeometric1F1

Confluent hypergeometric2F1 function
g.prior

Families of G-Prior Distribution for Coefficients in BMA Models
list2matrix.bma

Coerce a BMA list object into a matrix
predict.basglm

Prediction Method for an object of class basglm