Reproducible example with the dev version of brms:
fit1 <- brm(count ~ log_Age_c, epilepsy)
LOO(fit1, newdata = epilepsy[1, ])
> Error in colSums2(x) :
> Argument 'dim' must be an integer vector of length two.
I think there is a drop = FALSE argument missing somewhere when indexing observations. If possible it would be amazing if this could be fixed before releasing loo 2.0.
Reproducible example with the dev version of brms:
I think there is a
drop = FALSEargument missing somewhere when indexing observations. If possible it would be amazing if this could be fixed before releasing loo 2.0.