I'm trying to parallelize MCMC using R2Jags in R and need help solving this error

121 views Asked by At

I want to use the R2Jags parallel model (jags.parallel) to speed up my computations.

The documentation states I need to recompile the model before updating it. However I get a clear error that I don't know how to handle.

Error message:
Error message

Code that raises error:
Code that raises error

In line 33 M[s] is used and M is defined in the data section. What are possible reasons, that M is no longer defined when recompiling?

Cheers and thanks

0

There are 0 answers