R packagessecrAuthors: Murray Efford, Philipp Jund, David Fletcher
https://www.otago.ac.nz/density/
https://github.com/MurrayEfford/secr/
https://www.stats.otago.ac.nz/secrapp/
ascrAuthor: Ben Stevenson
https://github.com/b-steve/ascr
acreAuthors: Ben Stevenson, Joseph Reps, Lingyu Hao
https://github.com/b-steve/acre
From the secr vignette:
Description: Data from a trapping study of brushtail possums at Waitarere, North Island, New Zealand.
Source: Landcare Research, New Zealand
The components of the dataset:
possumCH)possummask)possumarea)A mask is a defined habitat region around the detectors/traps, divided into ‘cells’.
https://www.otago.ac.nz/density/pdfs/secr-habitatmasks.pdf
The study area is simply the coordinates of the perimeter of the survey region.
Code from the secr vignette
A detection function models the probability of detection from the distance of the animal to the detector.
Common detection functions:
\(g(d) = g_0 \exp(-d^2/2\sigma^2)\),
where,
$versiontime
[1] "5.4.3, run 13:56:38 04 Jul 2026, elapsed 1.4 s"
$traps
Detector Number Spacing UsagePct
single 180 20 100
$capthist
Occasions Detections Animals Detectors Moves Animals2
5 305 112 180 184 80
$mask
Cells Spacing Area
5120 20 204.8
$modeldetails
CL fixed distribution hcov relativeD
FALSE none poisson FALSE
$AICtable
model detectfn npar logLik AIC AICc
D~1 g0~1 sigma~1 halfnormal 3 -1097.107 2200.214 2200.437
$coef
beta SE.beta lcl ucl
D 0.5257907 0.10283425 0.3242392 0.7273421
g0 -1.4355017 0.14051867 -1.7109132 -1.1600901
sigma 3.9415019 0.04961721 3.8442539 4.0387498
$predicted
link estimate SE.estimate lcl ucl
D log 1.6917960 0.17443553 1.3829781 2.0695726
g0 logit 0.1922429 0.02182052 0.1530453 0.2386509
sigma log 51.4958827 2.55665522 46.7238116 56.7553426
Find these slides at: https://melbather.github.io/useR-2026-slides
Find me at: https://statisticsmelissa.netlify.app
Borchers, D. and Efford, M. (2008). Spatially explicit maximum likelihood methods for capture–recapture studies. Biometrics 64: 377-385.
Efford, M. (2025) secr: Spatially explicit capture–recapture models. R package version 5.3.0.
Stevenson, B., Reps, J., Hao, L. (2026, April 14). acre. GitHub. https://github.com/b-steve/acre
Stevenson, B. (2025, July 9). ascr. GitHub. https://github.com/b-steve/ascr.
University of Otago, New Zealand. (2026, May 28). Software for spatially explicit capture–recapture. https://www.otago.ac.nz/density/
Presentation made with Quarto