merliseclyde / BAS

BAS R package for Bayesian Model Averaging and Variable Selection
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
41 stars 16 forks source link

Errors in prior = "ZS-null" when R2 is not finite #36

Closed merliseclyde closed 5 years ago

merliseclyde commented 5 years ago

When a model is not full rank, and hence R2 is not defined using model fitting without pivoting, calculation of the log marginals under the ZS prior lead to errors, rather than returning NA's and a warning.

May be a problem with other priors as well, such as the hyper-g family