Closed badgerinden closed 5 months ago
Hi,
We are broadcasting initializations to each cluster either through a distribution function or as a list for a chain, one at a time. In your current code, you are broadcasting initializations as a list with a length of 3, which may lead to a problem. This is because we are operating a single chain on a single thread at a time. Consequently, the current approach may not function as intended.
I encountered an error while running the jags(). The error message is as follows:
Error in checkForRemoteErrors(val) : 3 nodes produced errors; first error: Number of initialized chains (length(inits)) != n.chains
I have already checked that the number of chains matches the length of the initial value list, but the error persists. My code is as follows:
jags()
function works well but still don't know whyjags.parallel()
didn't.Here is my sesionInfo()
Reference Burgar, Joanna M., et al. "Estimating density for species conservation: Comparing camera trap spatial count models to genetic spatial capture-recapture models." Global Ecology and Conservation 15 (2018): e00411