Package: BAS 1.7.4

BAS: Bayesian Variable Selection and Model Averaging using Bayesian Adaptive Sampling

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) <doi:10.1198/016214507000001337> for linear models or mixtures of g-priors from Li and Clyde (2019) <doi:10.1080/01621459.2018.1469992> 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 a tree structure of the model space as an efficient hash table. See Clyde, Ghosh and Littman (2010) <doi:10.1198/jcgs.2010.09049> for details on the sampling algorithms. 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. This material is based upon work supported by the National Science Foundation under Division of Mathematical Sciences grant 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.

Authors:Merlise Clyde [aut, cre, cph], Michael Littman [ctb], Joyee Ghosh [ctb], Yingbo Li [ctb], Betsy Bersson [ctb], Don van de Bergh [ctb], Quanli Wang [ctb]

BAS_1.7.4.tar.gz
BAS_1.7.4.zip(r-4.5)BAS_1.7.4.zip(r-4.4)BAS_1.7.4.zip(r-4.3)
BAS_1.7.4.tgz(r-4.4-x86_64)BAS_1.7.4.tgz(r-4.4-arm64)BAS_1.7.4.tgz(r-4.3-x86_64)BAS_1.7.4.tgz(r-4.3-arm64)
BAS_1.7.4.tar.gz(r-4.5-noble)BAS_1.7.4.tar.gz(r-4.4-noble)
BAS_1.7.4.tgz(r-4.4-emscripten)BAS_1.7.4.tgz(r-4.3-emscripten)
BAS.pdf |BAS.html
BAS/json (API)
NEWS

# Install 'BAS' in R:
install.packages('BAS', repos = c('https://merliseclyde.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/merliseclyde/bas/issues

Uses libs:
  • openblas– Optimized BLAS
Datasets:

On CRAN:

bayesianbayesian-inferencegeneralized-linear-modelslinear-regressionlogistic-regressionmcmcmodel-selectionpoisson-regressionpredictive-modelingregressionvariable-selection

10.83 score 42 stars 3 packages 396 scripts 1.8k downloads 55 mentions 39 exports 0 dependencies

Last updated 2 days agofrom:dcae47afc3. Checks:OK: 8 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 21 2024
R-4.5-win-x86_64NOTENov 21 2024
R-4.5-linux-x86_64OKNov 21 2024
R-4.4-win-x86_64OKNov 21 2024
R-4.4-mac-x86_64OKNov 21 2024
R-4.4-mac-aarch64OKNov 21 2024
R-4.3-win-x86_64OKNov 21 2024
R-4.3-mac-x86_64OKNov 21 2024
R-4.3-mac-aarch64OKNov 21 2024

Exports:aic.priorbas.glmbas.lmBayes.outlierbayesglm.fitBernoulliBernoulli.hereditybeta.binomialbeta.primebic.priorCCHcv.summary.basdiagnosticsEB.globalEB.localeplogprobeplogprob.margforce.heredity.basg.priorhyper.ghyper.g.nhypergeometric1F1hypergeometric2F1IC.priorintrinsicJeffreyslist2matrix.baslist2matrix.whichphi1robusttCCHtestBF.priorTGtr.beta.binomialtr.poissontr.power.priortrCCHuniformwhich.matrix

Dependencies:

Using the Bayesian Adaptive Sampling (BAS) Package for Bayesian Model Averaging and Variable Selection

Rendered fromBAS-vignette.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2023-11-28
Started: 2016-07-16

Readme and manuals

Help Manual

Help pageTopics
BAS: Bayesian Model Averaging using Bayesian Adaptive SamplingBAS
Bayesian Adaptive Sampling Without Replacement for Variable Selection in Generalized Linear Modelsbas.glm
Bayesian Adaptive Sampling for Bayesian Model Averaging and Variable Selection in Linear Modelsbas bas.lm
Bayesian Outlier DetectionBayes.outlier
Fitting Generalized Linear Models and Bayesian marginal likelihood evaluationbayesglm.fit
Independent Bernoulli Prior Distribution for ModelsBernoulli bernoulli
Independent Bernoulli prior on models that with constraints for model hierarchy induced by interactionsBernoulli.heredity
Beta-Binomial Prior Distribution for ModelsBeta.Binomial beta.binomial
Beta-Prime Prior Distribution for Coefficients in BMA Modelbeta.prime
Bodyfat DataBodyfat bodyfat
Generalized g-Prior Distribution for Coefficients in BMA ModelsCCH
Climate Dataclimate
Coefficients of a Bayesian Model Average objectcoef coef.bas coefficients coefficients.bas print.coef.bas
Compute Credible Intervals for BAS regression coefficients from BAS objectsconfint confint.coef.bas
Compute Credible (Bayesian Confidence) Intervals for a BAS predict objectconfint.pred.bas
Summaries for Out of Sample Predictioncv.summary.bas
BAS MCMC diagnostic plotdiagnostics
Find the global Empirical Bayes estimates for BMAEB.global EB.global.bas
Empirical Bayes Prior Distribution for Coefficients in BMA ModelEB EB.local
eplogprob - Compute approximate marginal inclusion probabilities from pvalueseplogprob
eplogprob.marg - Compute approximate marginal inclusion probabilities from pvalueseplogprob.marg
Fitted values for a BAS BMA objectsfitted fitted.bas
Post processing function to force constraints on interaction inclusion bas BMA objectsforce.heredity.bas
Families of G-Prior Distribution for Coefficients in BMA Modelsg.prior
Hald DataHald hald
Hyper-g-Prior Distribution for Coefficients in BMA Modelshyper.g
Generalized hyper-g/n Prior Distribution for g for mixtures of g-priors on Coefficients in BMA Modelshyper.g.n
Confluent hypergeometric1F1 functionhypergeometric1F1
Gaussian hypergeometric2F1 functionhypergeometric2F1
Information Criterion Families of Prior Distribution for Coefficients in BMA ModelsAIC.prior aic.prior BIC.prior bic.prior IC.prior
Images of models used in Bayesian model averagingimage image.bas
Intrinsic Prior Distribution for Coefficients in BMA Modelsintrinsic
Jeffreys Prior Distribution for $g$ for Mixtures of g-Priors for Coefficients in BMA ModelsJeffreys
Coerce a BAS list object into a matrix.list2matrix list2matrix.bas
Coerce a BAS list object into a matrix.list2matrix.which
Compound Confluent hypergeometric function of two variablesphi1
Plot Diagnostics for an BAS Objectplot.bas
Plots the posterior distributions of coefficients derived from Bayesian model averagingplot.coef.bas
Plot Bayesian Confidence Intervalsplot.confint.bas
Prediction Method for an object of class BASpredict predict.bas
Prediction Method for an Object of Class basglmpredict.basglm
Print a Summary of Bayesian Model Averaging objects from BASprint print.bas
Protein Activity Dataprotein
Robust-Prior Distribution for Coefficients in BMA Modelrobust
Summaries of Bayesian Model Averaging objects from BASsummary summary.bas
Generalized tCCH g-Prior Distribution for Coefficients in BMA ModelstCCH
Test based Bayes Factors for BMA ModelstestBF.prior
Generalized g-Prior Distribution for Coefficients in BMA ModelsTG
Truncated Beta-Binomial Prior Distribution for Modelstr.Beta.Binomial tr.beta.binomial
Truncated Poisson Prior Distribution for Modelstr.Poisson tr.poisson
Truncated Power Prior Distribution for Modelstr.Power.Prior tr.power.prior
Truncated Compound Confluent Hypergeometric functiontrCCH trunc.CCH
Uniform Prior Distribution for ModelsUniform uniform
Update BAS object using a new priorupdate update.bas
Extract the variable names for a model from a BAS prediction objectvariable.names variable.names.pred.bas
Coerce a BAS list object of models into a matrix.which.matrix