I was trying to run an example from the User Manual, but I encountered compilation errors.
In particular, at the bottom of page 78, there's the following sample code:
data {
int<lower=0> N;
real x[N];
real y[N];
}
parameters {
real alpha;
real beta;
real<lower=0> sigma;
}
model {
y ~ normal(alpha + beta * x, sigma);
...
}
The compiler complains that it cannot multiply "beta * x".
However, the example seems to work if the declaration "real x[N]" is replaced by "vector[N] x".
So, I'm wondering whether I'm missing something or the Manual needs to be updated.
Luca