I have repeated continuous measurements `y_n` for rats, observed at covariate values `x_n`, together with an index `rat_n` indicating which rat produced each observation. I want a hierarchical normal regression with rat-specific intercepts and slopes.

My model is:
For rat `j = 1, ..., N`,

`alpha_j ~ Normal(mu_alpha, sigma_alpha),`
`beta_j ~ Normal(mu_beta, sigma_beta).`

For observation `n = 1, ..., Npts`,

`y_n ~ Normal(alpha_{rat_n} + beta_{rat_n} (x_n - xbar), sigma_y).`

The hyperpriors are

`mu_alpha ~ Normal(0, 100),`
`mu_beta ~ Normal(0, 100),`

with flat priors on `sigma_y`, `sigma_alpha`, and `sigma_beta` over the positive reals.

Here:
`y_n` is the observed response for data point n,
`x_n` is the observed covariate for data point n,
`rat_n` identifies the rat for data point n,
`alpha_j` is the rat-specific intercept,
`beta_j` is the rat-specific slope,
`mu_alpha` and `mu_beta` are the population means of the intercepts and slopes,
`sigma_alpha` and `sigma_beta` are the population standard deviations of the intercepts and slopes,
`sigma_y` is the residual standard deviation,
`xbar` is the centering constant for the covariate,
`N` is the number of rats,
`Npts` is the number of observations.

Parameterization notes:
In `Normal(mu, sigma)`, `sigma` is a standard deviation.
