Skip to content

Instantly share code, notes, and snippets.

View rudeboybert's full-sized avatar
💭
Keep it real

Albert Y. Kim rudeboybert

💭
Keep it real
View GitHub Profile
@bakfoo
bakfoo / rats_stan_advi.R
Last active November 11, 2020 22:28
Rstan ADVI Test using rats examples.
y <- read.table('https://raw.github.com/wiki/stan-dev/rstan/rats.txt', header = TRUE)
x <- c(8, 15, 22, 29, 36)
xbar <- mean(x)
N <- nrow(y)
T <- ncol(y)
data <- list(y=y, x=x, xbar=xbar, N=N, T=T)
rats_model <- stan_model(file = "https://raw.githubusercontent.com/stan-dev/example-models/master/bugs_examples/vol1/rats/rats.stan")
#NUTS