K-fold validation for hierarchical model in rstan

Leaving out transformed parameters and leaving the model{} part empty indeed did the trick. All I had o do was to move some additional parameter definitions from the transformed parameters block to the generated quantities block.

Thanks so much for your help!

Max

1 Like