/ concept-collection / stan-examples
Sign in
concept-collection / stan-examples
stan-examples / linear-regression / main.stan
13 lines · 171 BCodeBlameHistory
20bfd87Update 30 filesJeremy Magland 1data {
2 int<lower=0> N;
3 vector[N] x;
4 vector[N] y;
5}
6parameters {
7 real alpha;
8 real beta;
9 real<lower=0> sigma;
11model {
12 y ~ normal(alpha + beta * x, sigma);
moveopenescclose