Yes, that's a problem. I'd thought we'd forced symmetry
on the inverse transform.
And yes, you want an alternative parameterization in
terms of Cholesky factors and to use multi_normal_cholesky.
You can use a scaled correlation matrix Cholesky factor
or just use the covariance matrix Cholesky factory
given that you don't have a prior (we don't have a
Cholesky-parameterized Wishart).
It's much much more efficient to vectorize the multi_normal
so that the matrix only has to be factored once (which is already
going to be more efficient using the Cholesky base type). So that'd
look like this:
vector<lower=-0.5, upper=0.5>[2] round_err[N];
vector[2] z[N]
for (n in 1:N) z[n] = y[n] - round_err[n];
z ~ multi_normal_cholesky(mu, L_Sigma);
When we vectorize the binary operators like -, you won't need
to loop over n in the transformed parameters.
- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> To post to this group, send email to
stan-...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>
>