Vector of length 1

Hi all,

May I ask that does Stan allow vector of length 1 in the model? For example x~Normal(mu,sigma^2) but x is only an observation of length 1.

If not, does it exist alternative expression in Stan for the above model?

Hi @stan_beginer, yeah a vector of length 1 should work. If you try it and run into trouble let us know and we’ll help sort it out.