| Etcc | R Documentation |
Compute the expected counts of cues, and an approximate RSE of the density estimate,
for a study design that combines cue counts at ‘count’ detectors (cameras) with a
sample of radio-collared animals (telemetry type ‘marking’ in secr;
see make.marking). Etcc is the counterpart of
Enrm for this method: it takes the parameters of detection, the density,
the detector array, the number of occasions and the number of collars, and needs no
simulation. RSEtcc has the same inputs and returns the expected counts with
approximations to the relative standard error of the density estimate, as
minnrRSE does for Enrm.
Etcc(D, lambda0, sigma, traps, mask, noccasions = NULL, ncollar = 20,
deployment = c("pdot", "uniform"), q = 1, nfix = 100,
Ndist = c("poisson", "fixed"), warnseen = 3, detectfn = c("HHN", "HEX"))
RSEtcc(D, lambda0, sigma, traps, mask, noccasions = NULL, ncollar = 20,
deployment = c("pdot", "uniform"), q = 1, nfix = 100,
Ndist = c("poisson", "fixed"), calib = c("mc", "fisher", "poisson"),
kcal = 1, warnseen = 3, nsimcollar = 2000, detectfn = c("HHN", "HEX"))
D |
population density animals / hectare; scalar, or a vector of length |
lambda0 |
numeric intercept of the hazard detection function |
sigma |
numeric spatial scale of detection (same length units as |
traps |
|
mask |
|
noccasions |
integer number of sighting occasions; if NULL (the default) this is |
ncollar |
integer number of collared animals |
deployment |
character; how collars are distributed (see Details) |
q |
numeric probability that a sighting of a collared animal is identified |
nfix |
integer number of telemetry fixes per collared animal |
Ndist |
character; distribution of the number of animals (see Details) |
warnseen |
numeric; |
calib |
character; how the contribution of the collared sample is computed (see Details) |
kcal |
numeric multiplier of 1/R used when |
nsimcollar |
integer number of random sets of collars when |
detectfn |
character; shape of the hazard of detection: half-normal |
The arguments D, lambda0, sigma, noccasions, ncollar, q and nfix are recycled to a common length; each element defines one setting and gives one row of the result. Use expand.grid to combine settings. Only the hazard half-normal ("HHN") and hazard exponential ("HEX") detection functions are implemented (as for telemetrytype 'marking' in secr). If traps has a usage attribute (see usage) it is taken as the effort that multiplies the hazard, in any units (0/1, days, trap-nights), and the expected cues from a detector are noccasions times its mean usage per occasion times the hazard. This equals the sum of usage over occasions when noccasions = ncol(usage(traps)), which is the usual case. Without a usage attribute all detectors are assumed to be used with unit effort on every occasion.
Let L(x) = S \sum_k \lambda_0 \exp(-d_k(x)^2/2\sigma^2) ("HHN"; \exp(-d_k(x)/\sigma) for "HEX") be the expected number of cues in S occasions from an animal with activity centre at x. With a the cell area of the mask, define J_1 = a \sum_x D(x) L(x) (all cues), J_2 = a \sum_x D(x) L(x)^2 and N = a \sum_x D(x). The expected number of animals detected at least once is E(n) = a \sum_x D(x) (1 - \exp(-L(x))), as for any SECR design (see Enrm).
The collared animals' activity centres are distributed with probability w(x) over the mask: proportional to D(x) if deployment = "uniform" (widespread), or to D(x) times the probability of detection in one occasion if deployment = "pdot" (centred; an analogue of selecting animals that are detected). The expected number of cues from the collared animals is C = m \sum_x w(x) L(x) for m collars. Then
U = J_1 - C expected cues of unmarked animals (the total T^u),
R = qC expected identified cues of collared animals, and Tm = (1-q)C expected unidentified cues,
seen expected number of collared animals detected at least once,
collarshare = C/J_1, the share of all cues that come from collared animals.
The total unmarked count is a compound Poisson variable; its variance to mean ratio is
\hat c = 1 + (J_2 + V_s)/\mu
where \mu = U. V_s = m \sum_x w(x) |\nabla L|^2 v/n_{fix} approximates the variance in the collared animals' cues caused by uncertainty in their activity centres; v is the per-axis variance of an activity centre estimated from one fix (\sigma^2 for "HHN", 2\sigma^2 for "HEX"). With Ndist = "fixed", J_2 - J_1^2/N replaces J_2. This is the expression used by secr.fit with details = list(chatmethod = "analytic") (chat).
RSEtcc gives two approximations. The coarse approximation, in the spirit of minnrRSE, adds the relative variances from the animals detected and from the collar cues:
\mathrm{RSE} \approx \sqrt{1/E(n) + 1/C}.
This is RSEcoarse. The closer approximation is based on density being estimated as total cues divided by the expected cues per animal, so two components of variance are added:
\mathrm{RSE}^2 = \hat c \mu/J_1^2 + \mathrm{CV}^2(\hat\Lambda).
The first term (RSEunmarked) comes from the count of unmarked cues; it changes little with the number of collars, because removing collared animals lowers the variance of the unmarked count and the mean together. The second (RSEcalib) comes from estimating the cue rate of an animal from the collared sample, and decreases roughly as 1/C. Overall RSE is the square root of the sum.
The method for the second term is set by calib.
(default) The information in the collared sample depends on where the collars happen to be. Sets of m activity centres are drawn from w(x), the number of collar cues is drawn from a Poisson distribution given the centres, and \mathrm{CV}^2 is the mean of 1/cues over draws with at least one cue. This allows for the sets of collars that are far from the cameras and carry little information, which is important when deployment is widespread or collars are few. The proportion of draws with no cues is returned as pnocues; there the model could not be fitted. Results vary slightly among calls unless set.seed is used.
The delta-method variance of the mean expected cues per animal from the expected Fisher information for \lambda_0 and \sigma (collared animals' counts, with activity centres treated as known, plus the telemetry fixes). For the designs examined this equals 1/(collar cues) closely, because the telemetry determines \sigma; it does not depend on q.
kcal / R, using the expected value of R rather than its distribution.
A data frame with one row for each setting. Etcc returns the columns
D, lambda0, sigma, noccasions, ncollar, deployment, q |
settings |
N |
expected number of animals in the mask |
En |
expected number of animals detected at least once |
neff |
effective number of animals |
J1 |
expected total number of cues from all animals |
Lambda |
expected number of cues per animal per unit density, summed over the mask ( |
U |
expected number of cues of unmarked animals |
R |
expected number of identified cues of collared animals |
Tm |
expected number of unidentified cues of collared animals |
seen |
expected number of collared animals detected at least once |
collarshare |
share of cues from collared animals |
chat |
variance to mean ratio of the unmarked total |
warn |
TRUE if |
RSEtcc returns these columns and in addition
RSEcoarse |
coarse approximation to the RSE of the density estimate |
RSEunmarked |
component of RSE from the unmarked count |
RSEcalib |
component of RSE from the collared sample |
RSE |
predicted RSE of the density estimate |
pnocues |
proportion of random sets of collars with no cues ( |
The predictions have been compared with simulated density estimates (secr 5.6.0, telemetrytype = "marking") only for homogeneous density, one class of animals, q = 1, all collars active for the whole survey, and a 9 x 9 grid of cameras; RSE was mostly within 10–20% of the simulated RSE and tended to be high for centred deployment, and RSEcoarse was between about 0.7 and 1.1 of it, lowest for few widespread collars. Neither allows for clumped activity centres or other spatial variation in density beyond what is supplied in D, for overdispersion in the cue counts other than that from animals, for heterogeneity among animals, or for the bias that results from few collars (the ‘ratio effect’). Predictions for fewer than about 5 expected collar detections are optimistic (see warn); estimates may also fail.
The RSE is for the density of the population over mask, assuming collared animals are representative of the population in detectability.
Efford, M. G., and Boulanger, J. (2019) Fast evaluation of study designs for spatially explicit capture–recapture. Methods in Ecology and Evolution, 10, 1529–1535. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/2041-210X.13239")}
Enrm, minnrRSE, Echat, Lambda, make.marking, addTelemetry, details
tr <- make.grid(nx = 9, ny = 9, spacing = 11.25, detector = "count", origin = c(60,60))
msk <- make.mask(tr, buffer = 60, type = "traprect", spacing = 5)
# expected counts
Etcc(D = 53, lambda0 = 0.54, sigma = 8, traps = tr, mask = msk, ncollar = 20)
# predicted RSE vs number of collars, widespread deployment
set.seed(1)
RSEtcc(D = 53, lambda0 = 0.54, sigma = 8, traps = tr, mask = msk,
ncollar = c(5, 10, 20, 40), deployment = "uniform")[, c("ncollar", "En", "seen",
"RSEcoarse", "RSE", "warn")]
n <- 3:60
rse <- sapply(c("pdot", "uniform"), function(dep)
RSEtcc(D = 53, lambda0 = 0.54, sigma = 8, traps = tr, mask = msk, ncollar = n,
deployment = dep)$RSE)
matplot(n, rse, type = "l", lty = 1, xlab = "Number of collars", ylab = "RSE(D-hat)")
legend("topright", c("centred", "widespread"), col = 1:2, lty = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.