Hi Daniel, it does look like Perry's solution works. This was a model translated from JAGS and the actual problem was that the latent state at first capture was being assigned in the model
. This assignment is what NIMBLE version 1.0 did not like, and the fix is easy.
Taking that statement out and using data and initial values (absent any NAs)
to inform the latent states works fine.
It does give me the following note, but clearly this is expected:
[Note] Ignoring non-NA values in inits for data nodes: Z