Recent Releases of BAS
BAS - BAS 1.7.5
Version 1.7.5 of the BAS package adds an internal function to count the number of models
that satisfy "hereditary" constraints. This is used in the force.heredity option
in bas.lm to reduce the number of models considered in the sampling process and should
reduce the memory requirements and speed up the sampling process. This currently works only
for factors included in the model formula, but not with factors always included in the model
orwith other hereditaty constraints such as with polynomials. (theforce.heredity option
does work with these other constraints). This is a first step in reducing the number of models
allocated in the sampling process. Future updates will include other hereditary constraints.
- R
Published by merliseclyde over 1 year ago
BAS - BAS 1.7.3
BAS 1.7.3 introduces a new Independent Adaptive MCMC algorithm for bas.lm that can be used a proposal distribution for sampling models with replacement and estimation of posterior model probabilities via Importance sampling and Horvitz-Thomposon estimators and their Bayesian Finite Population estimators. See details in bas.lm with `method="AMCMC".
- R
Published by merliseclyde over 1 year ago
BAS - BAS 1.7.2
Updated package provides a new adaptive independent MCMC sampler that allows more accurate estimates of model probabilities and other quantities using the Horvitz-Thompson estimator and Bayesian analogs for finite population sampling
Full Changelog: https://github.com/merliseclyde/BAS/compare/v1.7.1...v1.7.2
- R
Published by merliseclyde over 1 year ago
BAS - BAS 1.7.1
Minor Improvements and Fixes
Initialized vector
seviamemsetanddisp = 1.0infit_glm.c(issue #72)Initialized variables in
hyp1f1.cfromtestthat(issue #75)Removed models that have zero prior probability in
bas.lmandbas.glm(issue #74)Fixed error in
bayesglm.fitto check argumentsxoryfor correct type before calling C and added unit test (issue #67)
- R
Published by merliseclyde about 2 years ago
BAS - BAS 1.6.6
New Features
- Added support for
Gammaregression forbas.glm, with unit tests and example (Code contributed by @betsyberrson)
Minor Improvements and Fixes
added error if supplied initial model for the
bas.lmsampling methods "MCMC" and "MCMC+BAS" had prior probability zero.fixed printing problems as identified via checks
fixed indexing error for
bas.lmandmethod = "MCMC+BAS"asbas.lmusingmethod = "MCMC+BAS"crashed with a segmentation fault ifbestmodelis not NULL or the null model. GitHub issue #69fixed error in
predict.baswithse.fit=TRUEif there is only one predictor. GitHub issue #68 reported by @AleCarminati added unit test totest-predict.RFixed error in
coefforbas.glmobjects when using abetapriorof class IC, including AIC and BIC Github issue #65Fixed error when using
Jeffreysprior inbas.glmwith theinclude.alwaysoption and added unit test intest-bas-glm.R.
Github issue #61Fixed error for extracting coefficients from the median probability model when a formula is passed as an object rather than a literal, and added a unit test to
test-coefficients.RGithub issues #39 and #56
- R
Published by merliseclyde about 2 years ago
BAS - BAS version 1.6.2
Release for updates with R 4.2.0
Major change is improved behavior for CCH and related priors in bas.glm that use the phi1 function. Alternative formulations for computing the marginal likelihoods show add improved stability and eliminate/reduce NA and Inf in computations as reported in Issue #55
- R
Published by merliseclyde almost 4 years ago
BAS - BAS version 1.6.0
Changes
- update Fortran code to be compliant with
USE_FC_LEN_Tfor character strings
Bug Fixes
- fixed warning in src code for
log_laplace_F21which had an uninitialized variable leading to NaN being returned fromRfunctionhypergeometric2F1
- R
Published by merliseclyde over 4 years ago
BAS - BAS Version 1.5.5
This version of the package provides some minor bug fixes and addresses some memory issues identified in CRAN checks.
Changed the default in
bas.lmandbas.glmto force.heredity=FALSE (triggered by errors with Solaris).Modified prior probabilities to adjust for the number of variables always included when using include.always. Pull request #41 by Don van de Bergh. Issue #40
Added
contrast=NULLargument tobas.lmandbas.glmso that non-NULL contrasts do not trigger warning inmodel.matrixas of R 3.6.0. Bug #44Added check for sample size equal to zero due to subsetting or missing data Bug #37
- R
Published by merliseclyde about 6 years ago
BAS - BAS Version 1.5.3
This release fixes errors identified on CRAN for fedora with clang (there are still remaining problems with debian/clang and solaris)
Bug Fixes
Fixed errors identified on cran checks https://cran.r-project.org/web/checks/checkresultsBAS.html
initialize R2m = 0.0 in lmmcmcbas.c (lead to NA's with clang on debian and fedora )
switch to default of
pivot = TRUEinbas.lm, addingtolas an argument to control tolerance incholregpovotfor improved stability across platforms with singular or nearly singular designs.valgrind messages: Conditional jump or move depends on uninitialised value(s). Initialize vectors allocated via Ralloc in lmdeterministic.c and glm_deterministic.c.
- R
Published by merliseclyde over 7 years ago
BAS - BAS Version 1.5.2
BAS 1.5.2
Features
Included an option
pivot=TRUEinbas.lmto fit the models using a pivoted Cholesky decomposition to allow models that are rank-deficient. Enhancment #24 and Bug #21. Currently coefficients that are not-estimable are set to zero so thatpredictand other methods will work as before. With more testing and timing this may become the default; otherwise the default method without pivoting issues a warning if log marginals areNA. The vectorrankis added to the output (see documenation forbas.lm) and the degrees of freedom methods that assume a uniform prior for obtaining estimates (AIC and BIC) are adjusted to userankrather thansize.Added option
force.heredity=TRUEto force lower order terms to be included if higher order terms are present (hierarchical constraint) formethod='MCMC'andmethod='BAS'withbas.lmandbas.glm. Updated Vignette to illustrate. enhancement #19. Checks to see if parents are included usinginclude.alwayspass issue #26.Added option
drop.always.includedtoimage.basso that variables that are always included may be excluded from the image. By default all are shown enhancement #23Added option
drop.always.includedandsubsettoplot.basso that variables that are always included may be excluded from the plot showing the marginal posterior inclusion probabilities (which=4). By default all are shown enhancement #23update
fitted.basto use predict so that code covers both GLM and LM cases withtype='link'ortype='response'Added Code Coverage support and more extensive tests using
test_that.
Bugs
fixed issue #36 Errors in prior = "ZS-null" when R2 is not finite or out of range due to model being not full rank. Change in
gexpectationsfunction in filebayesreg.cfixed issue #35 for
method="MCMC+BAS"inbas.glminglm_mcmcbas.cwhen no values are provided forMCMC.iterationsorn.modelsand defaults are used. Added unit test intest-bas-glm.Rfixed issue #34 for
bas.glmwhere variables ininclude.alwayshad marginal inclusion probabilities that were incorrect. Added unit test intest-bas-glm.Rfixed issue #33 for Jeffreys prior where marginal inclusion probabilities were not renomalized after dropping intercept model
fixed issue #32 to allow vectorization for
phi1function in R/cch.R and added unit test to "tests/testthat/test-special-functions.R"fixed issue #31 to coerce
gto be a REAL forg.priorprior andIC.priorinbas.glm; added unit-test "tests/testthat/test-bas-glm.R"fixed issue #30 added n as hyperparameter if NULL and coerced to be a REAL for
intrinsicprior inbas.glm; added unit-testfixed issue #29 added n as hyperparameter if NULL and coerced to be a REAL for
beta.primeprior inbas.glm; added unit-testfixed issue #28 fixed length of MCMC estimates of marginal inclusion probabilities; added unit-test
fixed issue #27 where expected shrinkage with the JZS prior was greater than 1. Added unit test.
fixed output
include.alwaysto include the intercept issue #26 always so thatdrop.always.included = TRUEdrops the intercept and any other variables that are forced in.include.alwaysandforce.heredity=TRUEcan now be used together withmethod="BAS".added warning if marginal likelihoods/posterior probabilities are NA with default model fitting method with suggestion that models be rerun with
pivot = TRUE. This uses a modified Cholesky decomposition with pivoting so that if the model is rank deficient or nearly singular the dimensionality is reduced. Bug #21.corrected count for first model with
method='MCMC'which lead to potential model with 0 probabiliy and errors inimage.coerced predicted values to be a vector under BMA (was a matrix)
fixed
sizewith usingmethod=deterministicinbas.glm(was not updated)fixed problem in
confintwithhorizontal=TRUEwhen intervals are point mass at zero.
Other
suppress
warningwhen sampling probabilities are 1 or 0 and the number of models is decremented
Issue #25changed
force.heredity.basto renormalize the prior probabilities rather than to use a new prior probability based on heredity constraints. For future, add new priors for models based on heredity. See comment on issue #26.Changed License to GPL 3.0
- R
Published by merliseclyde over 7 years ago
BAS - BAS 1.5.1
BAS 1.5.1 June 6, 2018
Features
- added S3 method
variable.namesto extract variable names in the highest probability model, median probability model, and best probability model for objects created bypredict.
Bugs
- Fixed incorrect documentation in
predict.basglmwhich had thattype = "link"was the default for prediction issue #18
- R
Published by merliseclyde over 7 years ago
BAS - BAS 1.5.0
BAS 1.5.0 May 4, 2018
Features
add na.action for handling NA's for predict methods; GitHub issue #10
added include.always as new argument to bas.lm. This allows a formula to specify which terms should always be included in all models. By default the intercept is always included.
added a section to the vignetted to illustrate weighted regression and the force.heredity.bas function to group levels of a factor so that they enter or leave the model together.
Bugs Fixes
fixed problem if there is only one model for image function; GitHub issue #11
fixed error in bas.lm with non-equal weights where R2 was incorrect. GitHub issue #17
Deprecated
- deprecate the predict argument in predict.bas, predict.basglm and internal functions as it is not utilized
- R
Published by merliseclyde almost 8 years ago
BAS - BAS Version 1.4.9
Version of BAS to accompany final version of the paper "Mixtures of g-priors in Generalized Linear Models" to appear in the Journal of the American Statistical Association.
- R
Published by merliseclyde almost 8 years ago
BAS - BAS Version 1.4.2
Version of BAS to accompany latest version of the paper "Mixtures of g-priors in Generalized Linear Models"
- R
Published by merliseclyde over 9 years ago
BAS - BAS Version 1.4.1
Bug Fixes
- the modification in 1.4.0 to automatically handle NA's led to errors if the response was transformed as part of the forumula; this is fixed in this release
New Features
- added subset argument to
bas.lmandbas.glmso that arguments match standard lm and glm in R
Added DOI from Zenodo
- R
Published by merliseclyde over 9 years ago
BAS - BAS version 1.4.0
New features
- added
na.actionforbas.lmandbas.glmto omit missing data. - new function to plot credible intervals created by
confint.pred.basorconfint.coef.bas. See the help files for an example or the vignette. - added
se.fitoption inpredict.basglm. - Added
testBFas abetaprioroption forbas.glmto implement Bayes Fatcors based on the likelihood ratio statistic's distribution for GLMs.
- R
Published by merliseclyde over 9 years ago
BAS -
The latest release adds the following new features:
- added na.action for bas.glm to handlemissing data.
- new function to plot credible intervals created by confint.pred.bas or confint.coef.bas. See the help files for an example or the vignette.
- added se.fit option in predict.basglm.
- Added testBF as a betaprior option for bas.glm to implement Bayes Factors based on the likelihood ratio statistic's distribution for GLMs.
- R
Published by merliseclyde over 9 years ago
BAS - BAS version 1.3.0 Coursera Release
Release of BAS package version 1.3.0 for Launch of Coursera course on Bayesian Statistics
- R
Published by merliseclyde over 9 years ago