I received the following error
Error in jags.model("model.txt", data = jagsdata, n.chains = 4, n.adapt = 1000)
Compilation error on line 21.
Dimension mismatch taking subset of X
On line 21 of my model I was adapting some code that involved taking the mean of
The original code was set up to make the mean of a vector:
x.bar <- mean(X);
However, my data was in the form of a matrix.
Thus, the following modification solved the problem:
x.bar <- mean(X[,]);