inst/rstan/test-rstan.R

## 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)
skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.