merliseclyde / BAS

BAS R package https://merliseclyde.github.io/BAS/
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
41 stars 16 forks source link

Weights not found when using formula object for bas.lm #39

Closed Jennifer2010 closed 1 year ago

Jennifer2010 commented 5 years ago

Describe the bug coef() is unable to find the weights when using estimator "MPM"

To Reproduce Steps to reproduce the behavior:

library(MASS) library(BAS)

data(UScrime, package = "MASS") UScrime[, -2] <- log(UScrime[, -2])

Crime_aic =step(lm(y~., data = UScrime),k=2, trace = FALSE)

formula(Crime_aic)

Crime_ZS <- bas.lm(formula(Crime_aic), data = UScrime, prior = "ZS-null", modelprior = uniform())

coef(Crime_ZS, estimator = "MPM")

Desktop (please complete the following information):

merliseclyde commented 1 year ago

same as issue #56

merliseclyde commented 1 year ago

fixed in version 1.6.5 on GitHub now. Let me know if there are still any issues that you encounter!