Royle Young models for area or transect searches where you detect individuals (not their sign). Density and 3rd order resource selection covariates. Data simulators and files to fit models in nimble. Known and latent ID versions.
Must have nimble installed, even to simulate data. Must have RTools installed to install nimble.
Disclaimer: I have tested recent versions of this model, but not this one exactly. No indications of bugs, but will remove this when tested more thoroughly.
Royle-Young paper: https://esajournals.onlinelibrary.wiley.com/doi/full/10.1890/07-0601.1
Royle, J. Andrew, and Kevin V. Young. "A hierarchical model for spatial capture–recapture data." Ecology 89.8 (2008): 2281-2289.