data { int J; // number of schools array[J] real y; // estimated treatment effect (school j) array[J] real sigma; // std err of effect estimate (school j) } parameters { real mu; array[J] real theta; real tau; } model { theta ~ normal(mu, tau); y ~ normal(theta, sigma); }