Royle-Nichols occupancy model {wiqid} | R Documentation |
Royle-Nichols model for single-season occupancy estimation
Description
These functions implement the Royle-Nichols method (Royle & Nichols 2003) for estimation of site occupancy allowing for abundance-induced heterogeneity in detection probability. Probability of detection is modelled as a function of the number of animals available for detection, n, and the probability of detection of an individual animal, r. Probability of occupancy is derived as the probability that n > 0.
Function occSSrn
allows for site-specific covariates to be included in the model. occSSrnSite
and occSSrn0
are fast alternatives that do not require a full detection history matrix.
Usage
occSSrn(DH, model=NULL, data = NULL, ci=0.95, link=c("logit", "probit"),
verify=TRUE, ...)
occSSrn0(y, n, ci=0.95, link=c("logit", "probit"), ...)
occSSrnSite(y, n, model=NULL, data = NULL, ci=0.95, link=c("logit", "probit"), ...)
Arguments
DH |
a 1/0/NA matrix (or data frame) of detection histories, sites x occasions. |
model |
a list of formulae symbolically defining a linear predictor for each parameter in terms of covariates. If NULL, an intercept-only model is used, ie, lambda(.) r(.). |
data |
a data frame containing the variables in the model, with a row for each site. Each site covariate has one column. Each survey covariate has one column for each occasion, and the column name must end with the occasion number (without leading zeros); eg, Note: currently only site covariates can be handled. |
ci |
the confidence interval to use. |
link |
the link function to use, either logit or probit; see Links. |
verify |
if TRUE, the data provided will be checked. |
y |
a vector with the number of detections at each site. |
n |
a scalar or vector with the number of visits (survey occasions) at each site. |
... |
other arguments passed to |
Details
Numeric covariates in data
are standardised to facilitate convergence. This applies to binary covariates coded as 1/0; if this is not what you want, code these as TRUE/FALSE or as factors.
Value
Returns an object of class wiqid
, see wiqid-class for details.
Benchmarks
Output has been checked against output from PRESENCE (Hines 2006) v.6.9 for the weta
data set. Real values are mostly the same to 4 decimal places, though there is occasionally a discrepancy of 0.001. AICs are the same.
Author(s)
Mike Meredith
References
MacKenzie, D I; J D Nichols; A J Royle; K H Pollock; L L Bailey; J E Hines 2006. Occupancy Estimation and Modeling : Inferring Patterns and Dynamics of Species Occurrence. Elsevier Publishing.
Hines, J. E. (2006). PRESENCE - Software to estimate patch occupancy and related parameters. SGS-PWRC. http://www.mbr-pwrc.usgs.gov/software/presence.html.
Royle, J. A., Nichols, J. D. (2003) Estimating abundance from repeated presence-absence data or point counts. Ecology 84(3) 777-790.
See Also
See the examples for the weta
data set. See occ2sps
for single-season two-species models and occMS
for multi-season models.
Examples
# The weta data from MacKenzie et al (2006) p116:
data(weta)
DH <- weta[, 1:5]
occSS(DH) # for comparison
occSSrn(DH)
y <- rowSums(DH, na.rm=TRUE)
n <- rowSums(!is.na(DH))
occSSrnSite(y, n, lambda ~ Browsed, data=weta)