data { int J; // number of schools real y[J]; // estimated treatement effects real sigma[J]; //s.e. of effects. } parameters { real mu; real tau; vector[J] theta; } model { theta ~ normal(mu,tau); //target += normal_lpdf(theta|mu,tau); y ~ normal(theta,sigma); //target += normal_lpdf(effect|theta,see); }