Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 266 Bytes
// Linear regression in Stan
data {
int<lower=1> N; real y[N]; }
parameters {
real baseline; real trend; real<lower=0> sigma; }
model {
// Priors should be added here, for sigma, baseline and trend.
for (t in 1:N) y[t] ~ normal(baseline + trend*t, sigma); }