Created
November 21, 2018 10:01
-
-
Save behinger/19a98468f2fca2606d4c1984a3c39d7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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