bas.predict
error when n<p when using estimator= BMA
and se.fit =T
#70
Labels
bas.predict
error when n<p when using estimator= BMA
and se.fit =T
#70
Describe the bug
Great package! A noticed a bug however when trying to perform predictions.
When training a model with more predictors than variables (n<p) via
method = BAS,
the prediction of new data (withse.fit =T
andestimator= BMA
) fails with the following error:Error in solve.default(qr.R(qr(oldX))) : 'a' (14 x 15) must be square
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The function should return predictions with the 95% credible interval.
If this behavior is not a bug and this type of prediction is impossible I would expect a more informative error that
se.fit =T
is not supported for n>p scenarios via BMA and the BAS method. It seems to work fine if the method is set to MCMC however.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: