Skip to content
Prev 1766 / 3656 Next

R2jags update, jags.parallel

On 01/13/2012 11:29 AM, Elizabeth Tighe wrote:
Liz,

I checked the code for R2Jags, and jags.parallel does exist.  It appears 
that the author neglected to add jags.parallel to the export list in the 
package, which means you can't call it unless you know it is there. 
This is a bug that needs to be fixed.

The workaround until it is fixed it to call it via:

R2jags:::jags.parallel

as in:

test <- R2jags:::jags.parallel(d, inits, param, 
model.file="rats.bug",n.chains=3, n.iter=2000)

That should work.  I will notify the author and get the newer versions 
of R2jags up on the repositories.

Michael