Hi all,
I've been practising specifying multivariate normal distributions following the NIMBLE Manual, section 5.2.4.1.2. This is working well. Consequently, I tried to code it with non-centered parameterization following McElreath's Statistical Rethinking, section 14.2, Overthinking box. Let's suppose we're trying to estimate random intercepts and slopes beta[i, j] where i indexes intercept and slope (1, 2), and j indexes over ten individual (1, 2, ..., 10). The formula for non-centered parameterization is:
beta[1:2, j] <- t(diag(sd[1:2]) * Ustar[1:2, 1:2] * z[j, 1:2]),
where t is the transpose function, Ustar is the "Cholesky factor of the correlation matrix across treatments", and z are the standardised z-scores (note that the indexing here is swapped). Now, my concern is that in that formula, Ustar should be the lower triangular Cholesky factor, where dlkj_corr_cholesky takes the upper triangular Cholesky factor.
Is there a straightforward way to use non-centered parameterization in conjunction with dlkj_corr_cholesky?
Kind regards,
Matt