Eight schools estimates the effect of coaching programs in eight schools. The data are 8 measurements of coaching effects along with their standard errors.
See also the Stan example for details.
y <- c(28, 8, -3, 7, -1, 1, 18, 12) sigma_y <- c(15, 10, 16, 11, 9, 11, 10, 18) N <- length(y)
sigma_eta <- inverse_gamma(1, 1) eta <- normal(0, sigma_eta, dim=N) mu_theta <- normal(0, 100) xi <- normal(0, 5) theta <- mu_theta + xi * eta distribution(y) <- normal(theta, sigma_y)
cat(readLines('https://raw.githubusercontent.com/stan-dev/example-models/master/ARM/Ch.19/schools.stan'), sep = '\n')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.