Closed AleCarminati closed 1 year ago
Describe the bug When you create a BAS linear model with a single covariate and then you try to predict new data (with se.fit=T) the function returns the following error: Error in array(STATS, dims[perm]) : 'dims' cannot be of length 0
se.fit=T
Error in array(STATS, dims[perm]) : 'dims' cannot be of length 0
To Reproduce
data("Hald") hald.gprior = bas.lm(Y ~ X2, data=Hald, alpha=13, prior="g-prior") predict(hald.gprior, newdata=Hald, estimator="BPM", se.fit=TRUE)
Expected behavior The function should return the 95% intervals for the prediction of new data.
Desktop (please complete the following information):
Thanks! - that is a bug in the function to produce the standard errors. and affects all estimator options.
estimator
Dev version 1.6.5 passes current tests; closing issue for now.
Describe the bug When you create a BAS linear model with a single covariate and then you try to predict new data (with
se.fit=T
) the function returns the following error:Error in array(STATS, dims[perm]) : 'dims' cannot be of length 0
To Reproduce
Expected behavior The function should return the 95% intervals for the prediction of new data.
Desktop (please complete the following information):