Closed Pakillo closed 7 years ago
Ah! Now I see in the code of jags.parallel
, line 54 (https://github.com/suyusung/R2jags/blob/master/R/jagsParallel.R#L54) that each processor runs one chain (i.e. n.chain = 1). But inits seem to be passed directly, without first separating it in three parts (one for each chain). So each processor runs one chain but receives the initial values for 3 chains...
Might that be the cause? Thanks again for your help
Hi, Yes, indeed, the current code for jags.parallel only take one batch of the initial values. So in your case, providing three will cause the error. I shall revise the code to take care of this issue.
YS
Hello,
Many thanks for the package. It's extremely useful!
I'm having problems when using
jags.parallel
and providing initials values in a list (i.e. already-generated initial values, rather than a function).I wonder if I'm doing something wrong or there is a bug. A reproducible example follows:
Any help much appreciated! Many thanks in advance
My session info: