beta-binomial dynamic N-mixture model - insufficient data or error in specification?

27 views
Skip to first unread message

Quresh Latif

unread,
Jan 22, 2026, 3:08:17 PMJan 22
to hmecology: Hierarchical Modeling in Ecology
Hi all. I am working with a count dataset for Black Swift at waterfalls. I've got data from 128 waterfall sites, 3 years, and 2-3 visits per year, with not all sites surveyed every year. I fit a dynamic N-mixture hurdle model with zero-truncated Poisson error on abundance at occupied sites and binomial error on occupancy (model_OCPAG_pBinYr.nimble). The 5 fundamental parameters for this model are initial occupancy, colonization, extirpation, initial abundance (at occupied sites), and exponential population growth (at occupied sites), with covariates on all 5 and binomial detection probability. The model fit is OK, but there's definitely some lack of fit; the plot below shows observed vs posterior predictive simulated counts. A (zero-truncated) negative binomial version of this model does not improve fit very much. I tried specifying detection probability with a beta-binomial error term (see model_OCPAG_pBB.nimble) with no luck - sampling for many of the parameters fails (Rhat = Inf with Nimble; see Bad_pars_model_OCPAG_pBB.csv). My guess (informed somewhat by a conversation with chatGPT) is that I simply don't have sufficient data to support my model with extra-binomial variability in detection probability modeled as a beta-binomial distribution, but I thought I'd check here to see if anyone has alternative ideas before giving up on this model. Has anyone worked with a beta-binomial detection model, and if so (or regardless) would you give up on the model at this point, or is there anything more you would try to shore up fit (other than adding covariates, which we don't have at the moment).
Obs_vs_sim_count_model_OCPAG_pBinYr.jpg

Quresh S. Latif
Biometrician
Bird Conservancy of the Rockies
230 Cherry St., Ste. 150, Fort Collins, CO 80521
970-482-1707 (ext. 15)
Connecting people, birds and land
model_OCPAG_pBinYr.nimble
model_OCPAG_pBB.nimble
Bad_pars_model_OCPAG_pBB.csv

Matthijs Hollanders

unread,
Jan 23, 2026, 2:35:11 AMJan 23
to Quresh Latif, hmecology: Hierarchical Modeling in Ecology
Hey,

I’m on my phone so can’t open your files unfortunately. But usually when beta binomial or negative binomial fails when their “base models” don’t, it’s because the introduction of the additional dispersion parameters break identifiability. I’ll be keen to take a look when I can. 

Cheers,

Matt

--
*** Three hierarchical modeling email lists ***
(1) unmarked: for questions specific to the R package unmarked
(2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
(3) HMecology (this list): for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2016, 2021) and Schaub & Kéry (2022)
---
You received this message because you are subscribed to the Google Groups "hmecology: Hierarchical Modeling in Ecology" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hmecology+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hmecology/CACDDDpD3KmHgbyC7o_zG1O0gdHw6Pm7haKhxEkR%3Di1fyjRofug%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages