Learn R Programming

secr (version 5.4.1)

Spatially Explicit Capture-Recapture

Description

Functions to estimate the density and size of a spatially distributed animal population sampled with an array of passive detectors, such as traps, or by searching polygons or transects. Models incorporating distance-dependent detection are fitted by maximizing the likelihood. Tools are included for data manipulation and model selection.

Copy Link

Version

Install

install.packages('secr')

Monthly Downloads

2,704

Version

5.4.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Murray Efford

Last Published

January 11th, 2026

Functions in secr (5.4.1)

Rsurface

Smoothed Resource Surface
Parallel

Multi-core Processing
plot.MCgof

Methods for MCgof Objects
RSE

RSE from Fitted Model
addCovariates

Add Covariates to Mask or Traps
LR.test

Likelihood Ratio Test
RMarkInput

Convert Data to RMark Input Format
MCgof

Monte Carlo Goodness-of-fit for SECR Models
PG

Telemetry Fixes in Polygons
OVpossum

Orongorongo Valley Brushtail Possums
capthist.parts

Dissect Spatial Capture History Object
addSightings

Mark-resight Data
as.mask

Coerce traps object to mask
as.data.frame

Coerce capthist to Data Frame or Array
binCovariate

Add Binned Covariate
addTelemetry

Combine Telemetry and Detection Data
capthist

Spatial Capture History Object
as.popn

Coerce ppp object to popn
blackbear

Black Bear Hair Snag Dataset
autoini

Initial Parameter Values for SECR
cluster

Detector Clustering
closedN

Closed population estimates
chat

Overdispersion of Activity Centres
collate

Array of Parameter Estimates
clone

Replicate Rows
circular

Circular Probability
coef.secr

Coefficients of secr Object
closure.test

Closure tests
confint.secr

Profile Likelihood Confidence Intervals
nk

Number per detector
derived

Derived Parameters of Fitted SECR Model
covariates

Covariates Attribute
derivedDsurface

Derived Absolute Density
deleteMaskPoints

Edit Mask Points
detector

Detector Type
contour

Contour Detection Probability
deermouse

Deermouse Live-trapping Datasets
housemouse

House mouse live trapping data
details

Detail Specification for secr.fit
detectfn

Detection Functions
expected.n

Expected Number of Individuals
distancetotrap

Distance To Nearest Detector
fxi

Probability Density of Activity Centre
fxTotal

Activity Centres of Detected and Undetected Animals
esaPlot

Mask Buffer Diagnostic Plot
ellipse.secr

Confidence Ellipses
deviance

Deviance of fitted secr model and residual degrees of freedom
discretize

Rasterize Area Search or Transect Data
empirical.varD

Empirical Variance of H-T Density Estimate
extractMoves

Simulated Movements
logmultinom

Multinomial Coefficient of SECR Likelihood
head

First or Last Part of an Object
hcov

Hybrid Mixture Model
join

Combine or Split Sessions of capthist Object
kfn

Overlap Index
list.secr.fit

Fit Multiple SECR Models
homerange

Home Range Statistics
hornedlizard

Flat-tailed Horned Lizard Dataset
gridCells

Construct Grid Cells
logit

Logit Transformation
intervals

Work with Open Population data
newdata

Create Default Design Data
make.capthist

Construct capthist Object
make.systematic

Construct Systematic Detector Design
makeStart

Initial Parameter Values
make.traps

Build Detector Array
make.tri

Build Detector Array on Triangular or Hexagonal Grid
make.mask

Build Habitat Mask
make.spcosa

Construct Spatial Coverage Design
make.lacework

Construct Lacework Detector Design
ms

Multi-session Objects
pdot

Net Detection Probability
plot.capthist

Plot Detection Histories
mask

Mask Object
modelAverage

Averaging of SECR Models Using Akaike's Information Criterion
mask.check

Mask Diagnostics
nontarget

Non-target Data
ovenbird

Ovenbird Mist-netting Dataset
ovensong

Ovenbird Acoustic Dataset
occasionKey

Key to Petal Plot
pointsInPolygon

Points Inside Polygon
polyarea

Area of Polygon(s)
plot.traps

Plot traps Object
plot.popn

Plot Population Object
popn

Population Object
plotMaskEdge

Outline Around Mask Cells
plot.mask

Plot Habitat Mask, Density or Resource Surface
possum

Brushtail Possum Trapping Dataset
plot.secr

Plot Detection Functions
pmixProfileLL

Mixture Model Check
raster

Create a RasterLayer Object from Mask or Dsurface
rbind.popn

Combine popn Objects
rbind.traps

Combine traps Objects
print.capthist

Print Detections
predict.secr

SECR Model Predictions
predictDsurface

Predict Density Surface
rbind.capthist

Combine capthist Objects
print.secr

Print or Summarise secr Object
print.traps

Print Detectors
randomHabitat

Random Landscape
rectangularMask

Rectangular Mask
secr-defunct

Defunct Functions in Package secr
score.test

Score Test for SECR Models
read.telemetry

Import Telemetry Fixes
region.N

Population Size
read.traps

Read Detector Data From File
reduce

Combine Columns
secr-deprecated

Deprecated Functions in Package secr
read.mask

Read Habitat Mask From File
reduce.capthist

Combine Occasions Or Detectors
secrtest

Goodness-of-fit Test Results
secr.design.MS

Construct Detection Model Design Matrices and Lookups
Internal

Internal Functions
secr.test

Goodness-of-Fit Test
secr-package

Spatially Explicit Capture--Recapture Models
secr-version5

Changes in secr 5.0
secrdemo

SECR Models Fitted to Demonstration Data
secrRNG

Random Number Seed
secr.refit

Repeat or Resume Model Fit
secr.fit

Spatially Explicit Capture--Recapture
shareFactorLevels

Fix Inconsistent Covariates
sighting

Sighting Attributes
signal

Signal Fields
signalmatrix

Reformat Signal Data
session

Session Vector
simOU.capthist

Simulate Detections For Ornstein-Uhlenbeck Movement
sim.secr

Simulate From Fitted secr Model
sim.capthist

Simulate Detection Histories
setNumThreads

Number of Threads
sim.popn

Simulate 2-D Population
strip.legend

Colour Strip Legend
subset.capthist

Subset or Split capthist Object
stoatDNA

Stoat DNA Data
snip

Slice Transect Into Shorter Sections
sort.capthist

Sort Rows of capthist or mask Object
smooths

Smooth Terms in SECR Models
subset.mask

Subset, Split or Combine Mask Objects
speed

Speed Tips
spacing

Detector or Mask Spacing
skink

Skink Pitfall Data
summary.traps

Summarise Detector Array
timevaryingcov

Time-varying Covariates
summary.capthist

Summarise Detections
transformations

Transform Point Array
suggest.buffer

Mask Buffer Width
trap.builder

Complex Detector Layouts
subset.popn

Subset popn Object
subset.traps

Subset traps Object
summary.popn

Summarise Simulated Population
summary.mask

Summarise Habitat Mask
usage

Detector Usage
Trend

Density Trend
traps.info

Detector Attributes
traps

Detector Array
userdist

Non-Euclidean Distances
usagePlot

Plot usage, detections or sightings.
trim

Drop Unwanted List Components
updateCH

Update Old capthist Format
Troubleshooting

Problems in Fitting SECR Models
turnover

Specifying a Dynamic Population
utility

Utility Functions
vcov.secr

Variance - Covariance Matrix of SECR Parameters
write.captures

Write Data to Text File
verify

Check SECR Data
writeGPS

Upload to GPS
FAQ

Frequently Asked Questions, And Others
read.capthist

Import or export data
D.designdata

Construct Density Design Data
Dsurface

Density Surfaces
AICcompatible

Model Compatibility
Fletcher.chat

Estimate overdispersion
LLsurface

Plot Likelihood Surface
AIC.secr

Compare SECR Models
BUGS

Convert Data To Or From BUGS Format
CV

Coefficient of Variation