residuals.PGOcc | R Documentation |
PGOcc
modelsMethod for calculating occupancy and detection residuals for single-species occupancy models (PGOcc
) following the approach of Wright et al. (2019).
## S3 method for class 'PGOcc'
residuals(object, n.post.samples = 100, ...)
object |
object of class |
n.post.samples |
the number of posterior MCMC samples to calculate the residuals for. By default this is set to 100. If set to a value less than the total number of MCMC samples saved for the model, residuals will be calculated for a random subset of the total MCMC samples. Maximum value is the total number of MCMC samples saved. |
... |
currently no additional arguments |
A list comprised of:
occ.resids |
a matrix of occupancy residuals with first dimension equal to |
det.resids |
a three-dimensional array of detection residuals with first dimension equal to |
Jeffrey W. Doser doserjef@msu.edu
Wright, W. J., Irvine, K. M., & Higgs, M. D. (2019). Identifying occupancy model inadequacies: can residuals separately assess detection and presence?. Ecology, 100(6), e02703.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.