Closed rubenarslan closed 6 years ago
Thanks I will try to fix it! Note that the cor_bsts structure will be deprecated as of brms 2.2 for reasons explained in #148
Ah, didn't notice that issue. Nevermind then, it wasn't central to what I was trying to do.
There is a typo in your data in the sense that the same time point occurs multiple times per ID. Shouldn't it be:
dat = data.frame(y = rnorm(100), day = rep(1:10, length.out = 100), id = rep(1:10,
each = 10))
(I changed each = 1
to each = 10
). Regardless, I will try to fix this issue. so that the post-processing still works.
I now force time points to be unique within groups. When this uniqueness holds, LOO and other post-processing functions should work as expected.
There seems to be a problem using LOO when I combine BSTS + a group-level intercept. A reprex below: