Releases: merliseclyde/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.
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".
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: v1.7.1...v1.7.2
BAS 1.7.1
Minor Improvements and Fixes
-
Initialized vector
se
viamemset
anddisp = 1.0
infit_glm.c
(issue #72) -
Initialized variables in
hyp1f1.c
fromtestthat
(issue #75) -
Removed models that have zero prior probability in
bas.lm
andbas.glm
(issue #74) -
Fixed error in
bayesglm.fit
to check argumentsx
ory
for correct type before calling C and added unit test (issue #67)
BAS 1.6.6
New Features
- Added support for
Gamma
regression forbas.glm
, with unit tests and
example (Code contributed by @betsyberrson)
Minor Improvements and Fixes
-
added error if supplied initial model for the
bas.lm
sampling methods "MCMC" and "MCMC+BAS" had prior probability zero. -
fixed printing problems as identified via checks
-
fixed indexing error for
bas.lm
andmethod = "MCMC+BAS"
asbas.lm
usingmethod = "MCMC+BAS"
crashed with a segmentation fault ifbestmodel
is not NULL or the null model. GitHub issue #69 -
fixed error in
predict.bas
withse.fit=TRUE
if there is only one predictor. GitHub issue #68 reported by @AleCarminati
added unit test totest-predict.R
-
Fixed error in
coef
forbas.glm
objects when using abetaprior
of class
IC, including AIC and BIC Github issue #65 -
Fixed error when using
Jeffreys
prior inbas.glm
with the
include.always
option and added unit test intest-bas-glm.R
.
Github issue #61 -
Fixed 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 totest-coefficients.R
Github issues #39 and #56
v1.6.4
Latest release for CRAN
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
BAS version 1.6.0
Changes
- update Fortran code to be compliant with
USE_FC_LEN_T
for character strings
Bug Fixes
- fixed warning in src code for
log_laplace_F21
which had an uninitialized variable
leading to NaN being returned fromR
functionhypergeometric2F1
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.lm
andbas.glm
to 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=NULL
argument tobas.lm
andbas.glm
so that non-NULL contrasts do not
trigger warning inmodel.matrix
as of R 3.6.0. Bug #44 -
Added check for sample size equal to zero due to subsetting or missing data
Bug #37
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/check_results_BAS.html
-
initialize R2_m = 0.0 in lm_mcmcbas.c (lead to NA's with clang on debian and fedora )
-
switch to default of
pivot = TRUE
inbas.lm
, addingtol
as an argument to control tolerance incholregpovot
for 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 R_alloc in lm_deterministic.c and glm_deterministic.c.