jags.parallel: setting less clusters than chains: “Error in res[[ch]] : subscript out of bounds”
问题 I have only 2 core CPU so logically I want to set only two parallel threads/clusters for jags.parallel . unfortunatelly, when I try it and the number of chains is 3 or 4, jags fails with an error: Error in res[[ch]] : subscript out of bounds Is lower number of threads (than chains) not allowed? I have not encountered such statement in the documentation. Anyway, it doesn't make sense to run 4 chains in 4 threads/clusters, when your CPU only has 2 cores! Threads will fight for CPU, caches won't