I have a model with N data points and J groups, where I want to partially pool the means and the variances of the groups.
Within group j, for data $\{y_i\}$ I'm assuming
$y[i] \sim \mathcal{N}(\theta[j], \sigma_y[j])$
For $\theta$, I have
$\theta[j] \sim \mathcal{N}(\mu_\theta, \sigma_\theta)$ for j = 1, ..., J
I'm not sure what prior to use for the $\sigma_y$ parameter. I've tried inverse gamma; i.e,
$\sigma_y^2[j] \sim IG(a, b)$ for j = 1, ..., J
but my chains aren't converging for a toy data set I've created. Even when I pass the "true" parameter values as the initial values for the chain, it still doesn't work.
How do people typically handle models like this? This isn't working in stan or in pymc, so I'm thinking there's something wrong with my probability model.