Michael, thanks for sending me your exploration of divergence, it was very interesting.
Unfortunately, I'm still having a lot of trouble achieving convergence. I tried specifying half-Cauchy(0,1) distributions and multiplying by cScale in the model. Even with adapt_delta at .99 there were hundreds of divergent transitions. I then tried switching from half-Cauchy distributions to half-Normals. This actually made things worse in terms of rhat and ess.
So, I started to suspect that the problem might go beyond the geometry of the log-likelihood. It turns out that the model with no pooling on the variance components also fails to converge. Presumably, this is because many of the groups have only 1 or 2 data points making it impossible to estimate individual standard deviations. In these cases I'm happy for the prior variance to be used, but maybe the difference in the scale of the prior is causing convergence problems?
My current plan is to get the model with no pooling working before trying the hierarchical model again. I'm hoping this can be done with the right selection of informative priors, but I'd be happy to hear any suggestions.
Thanks again,
Jonathon