Thanks for sharing the reproducible example.
I ran it quickly and these were all (or mostly all) during warmup, so nothing to worry about for that one.
But for the ones that error:
When I see errors like this
variable name=b_A; dims declared=(1); dims found=()
that usually suggests to me that we need to wrap the R variable in array()
.
Can you try wrapping each of these list elements in array()
? So the init
argument would be:
init = function() {
list(
b_A = array(rgamma(1, 1)),
b_B = array(rgamma(1, 1)),
b_C = array(rgamma(1, 1))
)
}
I think that should get it to run, but what I don’t understand is why it would have worked with previous versions and not after updating (unless I’m misunderstanding the situation). As far as I know we haven’t changed anything in CmdStanR between versions that would affect this.