
Hi,
do you have NAs in your detection histories? I believe that is
the issue. The models don't allow NAs / missing data in the
detection histories, so the data structure differs a little from
normal occupancy models in unmarked / ubms. Try replacing the NAs
in the detection history with 0, and provide the effort matrix
(which may contain NAs) as an observation covariate.
JAGS and Nimble don't allow NAs in the detection histories, hence
the NAs must be introduced via the effort matrix as a observation
covariate. The model will set the detection probability of all
occasions with effort = NA to 0, thus ensuring that the 0s in the
detection history doesn't bias detection probabilities.
The warning about the deterministic assignment can be ignored. It
happens when the rOcc_v function is used to generate a new
detection history (new.y), which is then compared to the actual
detection history for calculating model residuals.
I will add the issue with NAs in the detection histories to the
vignette.
Best regards,
Jürgen
--
You received this message because you are subscribed to the Google Groups "camtrapR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camtrapr+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/camtrapr/ab0d2b08-a5a7-4b5b-a92f-46b8635b8c58n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/camtrapr/a4ebf70c-3526-4a75-b275-59cd0488189en%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/camtrapr/3f9a8591-9602-4113-951c-efcaef952536n%40googlegroups.com.