I have a question regarding the use of dmnorm in Jags when none of the mean and variance covariance matrix are known and fixed. I keep getting the error "node Q invalid parent value" I am not sure where the issue comes from. Any idea will be more than welcome! Thanks!
model {
for (i in 1:n) {
mu[i] <- a+b*X[i]
}
va <- (c*VM+diag)
va.p <- inverse(va)
Q ~ dmnorm(mu[], va.p[ , ])
a ~ dnorm(0,0.01)
b ~ dnorm(0,0.01)
c ~ dunif(0.0001,100)
}
vato be positive-definite, Bene. When it's not, dmnorm had better complain! It is difficult to make statistical sense of this model, which appears to add a random multiple of the diagonal to all the off-diagonal elements. – whuber♦ Dec 7 '11 at 17:19