I get the following error when I try to compile the vectorized truncated data example from section 4.2 of the manual
data {
int<lower=0> N;
real U;
array[N] real<upper=U> y;
}
parameters {
real mu;
real<lower=0> sigma;
}
model {
y ~ normal(mu, sigma) T[ , U];
}
Error: “Outcomes in truncated distributions must be univariate.”
This is with rstan version 2.26.22.
Does anyone know why this is happening? Is there a more recent version of rstan that I should be using? Thanks!