Fit time-to-detection occupancy models of Garrard et al. (2008, 2013). Time-to-detection can be modeled with either an exponential or Weibull distribution.
psiformula: Right-hand sided formula for the initial probability of occupancy at each site.
gammaformula: Right-hand sided formula for colonization probability. Currently ignored as dynamic models are not yet supported.
epsilonformula: Right-hand sided formula for extinction probability. Currently ignored as dynamic models are not yet supported.
detformula: Right-hand sided formula for mean time-to-detection.
data: unmarkedFrameOccuTTD object that supplies the data (see unmarkedFrameOccuTTD).
ttdDist: Distribution to use for time-to-detection; either "exp" for the exponential, or "weibull" for the Weibull, which adds an additional shape parameter k.
linkPsi: Link function for the occupancy model. Only option is "logit" for now, in the future "cloglog"
will be supported for the complimentary log-log link.
prior_intercept_state: Prior distribution for the intercept of the state (occupancy probability) model; see ?priors for options
prior_coef_state: Prior distribution for the regression coefficients of the state model
prior_intercept_det: Prior distribution for the intercept of the time-to-detection model
prior_coef_det: Prior distribution for the regression coefficients of the time-to-detection model
prior_intercept_shape: Prior distribution for the intercept of the shape parameter (i.e., log(shape)) for Weibull TTD models
prior_sigma: Prior distribution on random effect standard deviations
log_lik: If TRUE, Stan will save pointwise log-likelihood values in the output. This can greatly increase the size of the model. If FALSE, the values are calculated post-hoc from the posteriors
...: Arguments passed to the stan call, such as number of chains chains or iterations iter
Garrard, G.E., Bekessy, S.A., McCarthy, M.A. and Wintle, B.A. 2008. When have we looked hard enough? A novel method for setting minimum survey effort protocols for flora surveys. Austral Ecology 33: 986-998.
Garrard, G.E., McCarthy, M.A., Williams, N.S., Bekessy, S.A. and Wintle, B.A. 2013. A general model of detectability using species traits. Methods in Ecology and Evolution 4: 45-52.
Kery, Marc, and J. Andrew Royle. 2016. Applied Hierarchical Modeling in Ecology, Volume 1. Academic Press.