Echat: Expected Variance Inflation Factor for Sighting Data

EchatR Documentation

Expected Variance Inflation Factor for Sighting Data

Description

Compute the expected variance inflation factor (c-hat) of the pooled total of sightings of unmarked animals, from the parameters of detection, the density, the detector array and the number of occasions, without simulation. This is the design-stage counterpart of the analytic c-hat that secr computes at the fitted parameters (details = list(chatmethod = "analytic") in secr.fit), and a companion to Enrm.

Usage


Echat(D, traps, mask, detectpar, noccasions,
    detectfn = c("HHN", "HHR", "HEX", "HN", "HR", "EX"),
    Ndist = c("poisson", "fixed"))

Arguments

D

population density animals / hectare; scalar, or a vector of length nrow(mask)

traps

traps object with detector type ‘count’ or ‘proximity’

mask

mask object

detectpar

list of detection parameters (as for Enrm)

noccasions

integer number of sighting occasions

detectfn

character or integer; detection function

Ndist

character; distribution of the number of animals

Details

The model is that of the ‘sighting-only’ models of secr: all animals are unmarked, activity centres are independent with distribution proportional to D(x), and the number of animals is Poisson or fixed. All detectors are assumed to be used on every occasion (as in Enrm).

Cues of one animal fall at several detectors and occasions, so the total T is not a Poisson variable. The variance inflation factor is \hat c = \mathrm{Var}(T) / \mathrm{E}(T) for count detectors, and for proximity detectors the ratio of \mathrm{Var}(T) to the variance if the cells were independent Bernoulli variables with a common probability, where T is the number of detector-occasions with a detection (‘positive cells’).

Count detectors. Let L(x) be the expected number of cues from an animal centred at x (summed over detectors and occasions), a the cell area of the mask, J_1 = a \sum_x D(x) L(x) and J_2 = a \sum_x D(x) L(x)^2. Then \mathrm{E}(T) = J_1 and \mathrm{Var}(T) = J_1 + J_2 for Poisson N, and J_1 + J_2 - J_1^2/N for fixed N.

Proximity detectors. A cell (k,s) is positive with probability 1 - \exp(-X), where X is the summed hazard of the animals present. With G the probability generating function of the number of animals, u(x) \propto D(x), h_k(x) the hazard at detector k, and

M_{1k} = G\{\sum_x u(x) \exp(-h_k(x))\}, \quad M_{2kk'} = G\{\sum_x u(x) \exp(-h_k(x) - h_{k'}(x))\},

the mean is S \sum_k (1 - M_{1k}) and the variance is S \sum_k (M_{1k} - M_{2kk}) + S^2 \sum_{kk'} M_{2kk'} - S^2 (\sum_k M_{1k})^2, with S the number of occasions.

The result agrees with the value computed by secr for fitted models, and with simulation.

Value

Named numeric vector with elements

ET

expected value of the total: the number of cues (count) or of positive cells (proximity)

VT

variance of the total

chat

variance inflation factor

Note

Echat does not allow for marked animals (cf. Etcc, which removes the collared animals' expected cues for telemetry-calibrated cue counts), for varying usage, or for ‘multi’ detectors.

References

Efford, M. G. and Hunter, C. M. (2018) Spatial capture–mark–resight estimation of animal population density. Biometrics 74, 411–420.

See Also

Enrm, Etcc, details

Examples


tr <- make.grid(nx = 6, ny = 6, spacing = 15, detector = "count")
msk <- make.mask(tr, buffer = 45, type = "traprect", spacing = 7.5)
dp <- list(lambda0 = 0.4, sigma = 15)

# count detectors
Echat(D = 20, traps = tr, mask = msk, detectpar = dp, noccasions = 5)

# binary proximity detectors, same parameters
detector(tr) <- "proximity"
Echat(D = 20, traps = tr, mask = msk, detectpar = dp, noccasions = 5)

# fixed number of animals
Echat(D = 20, traps = tr, mask = msk, detectpar = dp, noccasions = 5, Ndist = "fixed")


secrdesign documentation built on Dec. 1, 2026, 9:06 a.m.