Skip to content

Instantly share code, notes, and snippets.

@kosugitti
Created October 17, 2016 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosugitti/8d1533429d868a7b4a53eccd2350a4d9 to your computer and use it in GitHub Desktop.
Save kosugitti/8d1533429d868a7b4a53eccd2350a4d9 to your computer and use it in GitHub Desktop.
data{
int<lower=0> N;
real X1[N];
real X2[N];
real X3[N];
}
parameters{
real mu1;
real mu2;
real mu3;
real<lower=0> sd1;
real<lower=0> sd2;
real<lower=0> sd3;
}
model{
for(n in 1:N){
X1 ~ normal(mu1,sd1);
X2 ~ normal(mu2,sd2);
X3 ~ normal(mu3,sd3);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment