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

using bas.lm with a formula object leads to errors in predict for missing weights #8

Closed merliseclyde closed 7 years ago

merliseclyde commented 7 years ago
library(BAS)
data(Hald)
hald.model = formula(Y ~ ., data=Hald)
hald.bas = bas.lm(hald.model, data=Hald)
predict(hald.bas, estimator="MPM", se.fit=TRUE)
Error in eval(object$call$weights) : object 'object' not found
merliseclyde commented 7 years ago

Fixed in version 1.4.5 now