--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/6c0fcc1a-66e3-a333-2c57-a5627f0d36fa%40magnaspesmeretrix.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/CA%2B7Ts_r8DABGcQvKACL-UFTnwoTD_B%3D3Ozu6d6exCyMvWnFtMw%40mail.gmail.com.
Hi everyone,Thanks for the quick responses. I wonder if I've found another solution to this as well. The idea is to create a new response variable y_new that's very close to the observed y data matrix. Then model y_new with noncentered parameterization (not possible with data because data has to be followed by a "~ d()", which does impute the missingness. The modified code is this:for (i in 1:n_obs) {# multivariate likelihood (noncentered multivariate)
y_new[1:4,i] <- mu[1:4] + diag(sigma[1:4]) %*% t(chol[1:4,1:4]) %*% z[1:4,i]
for (j in 1:4) {
z[j,i] ~ dnorm(0, 1) # z-scores
y[j,i] ~ dnorm(y_new[j,i], sd = 0.001) # trick
} # j} # iAttached is a script showing there's no missingness in y_new after running the model and that the observed y and y_new are essentially the same values.Curious about any feedback on this!Matt
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/06857b16-3227-4b49-92fb-09d24921c25cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/CABeTmqiT7P7xqouopL4S8mspEuhgZJ83irYp1FbTACtmQtsodg%40mail.gmail.com.