Hi fellow Nimble users,
I don't have much experience in Nimble, I did several models before, however right now I am stuck with a particular error and hope that you can help me solve it.
I am doing an age-structured CJS model to estimate survival and recapture probabilities. The model I am doing right now is checking effects of sex (categorical, 2-levels Male/Female), age (categorical, 2-levels Juv/Ad), rain (continuous), mean maximum temperature (tempmax, continuous) and the interaction effect of rain and tempax. Also, I am checking random year effect in both parameters.
Model in a nutshell:
Survival model: logit(phi) <- sex + age + rain + tempmax + rain:tempmax + ryearphi
Recapture model: logit(p) <- age + rain + tempmax + rain:tempmax + ryearp
This model was running without any problem just before I included rain and tempmax covariates. Now I am getting this error when I try to run the model again with same priors, inits, and MCMC settings:
Infinite values were detected in model variables: logProb_z, logProb_y.
And then after compiling I also get a lot of lines of this error:
...
warning: problem initializing stochastic node z[54, 3]: logProb is -Inf.
warning: problem initializing stochastic node z[55, 3]: logProb is -Inf.
warning: problem initializing stochastic node z[56, 4]: logProb is -Inf.
warning: logProb of data node y[56, 3]: logProb is -Inf.
warning: problem initializing stochastic node z[60, 3]: logProb is -Inf.
warning: logProb of data node y[60, 2]: logProb is -Inf.
warning: problem initializing stochastic node z[72, 4]: logProb is -Inf.
...
My initial thoughts were either my initial values or my priors were not suitable for rain and tempmax (and their interaction effect) slopes, and I tried several alternatives, however I still get the same error.
I'd be appreciated if anyone has any idea on how to solve this. I am attaching the model code and a sample dataset to replicate the error.
Thanks in advance!
Best,
Dilsad