You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems SBC doesn't expect a length 1 variable to have an index, but if this corresponds to a vector parameter, Stan will still append an index to the parameter name. Therefore when intersect is used here, parameter vectors of length 1 will be dropped from the $stats output.
Thanks for reporting this. The underlying problem here is that R does not distinguish between a scalar and vector of length 1 while C++ and Stan do. In best case scenario, this problem could automatically disappear once stan-dev/posterior#187 is resolved. But I agree that in the meantime we might want to provide some workaround.
It seems
SBC
doesn't expect a length 1 variable to have an index, but if this corresponds to a vector parameter, Stan will still append an index to the parameter name. Therefore whenintersect
is used here, parameter vectors of length 1 will be dropped from the $stats output.Reprex here.
(I'm just sharing this for awareness as SBC still warns that a variable has been dropped and a user-side workaround is fairly simple)
The text was updated successfully, but these errors were encountered: