I want to generate a uniform distribution on a vector.
I wrote the following code. For the normal and inverse gamma distributions, they were generated on a three-column vector (and also appear to be uncorrelated).
However, when I try to generate the uniform distribution on “row_vector”, it returns the error “initalization failed”.
Just to be sure, I specified “real” instead of “row_vector”, and the error did not occur and the uniform distribution was returned.
If you know how to generate an uncorrelated uniform distribution on a vector, please let me know.
#sampling only code
sampling_code = “”"
// real phai;
mu ~ normal(0, 10);
phai ~ uniform(0, 1);
eta ~ inv_gamma(4,1);