datacloning / dclone

Data Cloning and MCMC Tools for Maximum Likelihood Methods
https://github.com/datacloning/dclone
7 stars 2 forks source link

dc.parfit fails when n.clones is of length 1 #13

Open psolymos opened 5 years ago

psolymos commented 5 years ago

It works fine with n.clones=c(2,3) for example but it fails when n.clones=2 with this (partype="balancing"):

Parallel computation in progress

Error in pmod[[i]] : 
  attempt to select less than one element in integerOneIndex

When partype="parchains" it works fine in all cases.

partype="both" errors with this:

Parallel computation in progress

Error in attr(data, "mcpar") <- c(start, end, thin) : 
  attempt to set an attribute on NULL