I am interested in using nimbleEcology to fit Nmixture models by MLE, and began playing around with a toy example to try to learn the ropes. A few questions cropped up for me.
1. Does it matter if the model code includes priors, even though they are not used (I think). In the occupancy example at (https://cran.r-project.org/web/packages/nimbleEcology/vignettes/Introduction_to_nimbleEcology.html it looks like priors are included in the model.
2. In my toy example, when I return coefficients for p (in the call to optim), or when I return the derived detection probabilities, everything looks OK. But when I try both, the parameter estimates for the coefficients are off, and the hessian has a bunch of zeroes. How can I return both? I fiddled around with the getDependencies function, but couldn’t get it to work the way I expected. I have the same question about the site-level abundances – what if I want to return those?
3. Is it possible to include random effects, e.g., a random site effect for lambda or p?
I suspect the problem is just my lack of understanding about getDependencies or maybe even my inexperience with optim.
Code for the toy example is attached.
Thanks,
Glenn
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/1e081886-2260-4bfd-897d-b903b6c20261n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/03dd4c45-94c2-4678-ba19-4ab627adf25an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/CAEbSdx1Zc1R%2BHaviyF0ZS%2BGq4D41EkXHAOODFLXqA-%3DpCiA4Dg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/CAL5Jjd%3DpTKaz00VQ8naMkxpvB1Q%3D%3Da32H9dav3pSN1G%3D_HhqkQ%40mail.gmail.com.