## SKG
## Jan 21, 2020
## Getting rstan to run
library(rstan)
library(ggplot2)
library(dplyr)
schools_dat <- list(J = 8,
y = c(28, 8, -3, 7, -1, 1, 18, 12),
sigma = c(15, 10, 16, 11, 9, 11, 10, 18))
fit <- stan(file = '8schools.stan', data = schools_dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.