merliseclyde/BAS: BAS Version 1.5.2
Description
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.
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.
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
Files
merliseclyde/BAS-v1.5.2.zip
Files
(385.9 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:0031867e25efba9e1fb3e309604a479c
|
385.9 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/merliseclyde/BAS/tree/v1.5.2 (URL)