Skip to content

Instantly share code, notes, and snippets.

@behinger
Created November 21, 2018 10:01
Show Gist options
  • Save behinger/19a98468f2fca2606d4c1984a3c39d7f to your computer and use it in GitHub Desktop.
Save behinger/19a98468f2fca2606d4c1984a3c39d7f to your computer and use it in GitHub Desktop.
model = "
data {
vector[100] A;
}
parameters {
real beta;
real<lower=0> sigma;
}
model {
A ~ normal(beta, sigma);
}
"
library(rstan)
stan(model_code=model,data = list(A=rnorm(100)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment