Learn R Programming

secr (version 5.3.0)

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

1,505

Version

5.3.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Murray Efford

Last Published

September 27th, 2025

Functions in secr (5.3.0)

plot.MCgof

Methods for MCgof Objects
Rsurface

Smoothed Resource Surface
RMarkInput

Convert Data to RMark Input Format
RSE

RSE from Fitted Model
addCovariates

Add Covariates to Mask or Traps
Parallel

Multi-core Processing
LR.test

Likelihood Ratio Test
OVpossum

Orongorongo Valley Brushtail Possums
PG

Telemetry Fixes in Polygons
MCgof

Monte Carlo Goodness-of-fit for SECR Models
blackbear

Black Bear Hair Snag Dataset
addTelemetry

Combine Telemetry and Detection Data
binCovariate

Add Binned Covariate
addSightings

Mark-resight Data
as.popn

Coerce ppp object to popn
capthist

Spatial Capture History Object
capthist.parts

Dissect Spatial Capture History Object
autoini

Initial Parameter Values for SECR
as.data.frame

Coerce capthist to Data Frame or Array
as.mask

Coerce traps object to mask
confint.secr

Profile Likelihood Confidence Intervals
nk

Number per detector
closure.test

Closure tests
cluster

Detector Clustering
closedN

Closed population estimates
chat

Overdispersion of Activity Centres
circular

Circular Probability
collate

Array of Parameter Estimates
coef.secr

Coefficients of secr Object
clone

Replicate Rows
detectfn

Detection Functions
derivedDsurface

Derived Absolute Density
covariates

Covariates Attribute
housemouse

House mouse live trapping data
contour

Contour Detection Probability
detector

Detector Type
deleteMaskPoints

Edit Mask Points
details

Detail Specification for secr.fit
derived

Derived Parameters of Fitted SECR Model
deermouse

Deermouse Live-trapping Datasets
fxTotal

Activity Centres of Detected and Undetected Animals
fxi

Probability Density of Activity Centre
discretize

Rasterize Area Search or Transect Data
extractMoves

Simulated Movements
ellipse.secr

Confidence Ellipses
expected.n

Expected Number of Individuals
esaPlot

Mask Buffer Diagnostic Plot
empirical.varD

Empirical Variance of H-T Density Estimate
deviance

Deviance of fitted secr model and residual degrees of freedom
distancetotrap

Distance To Nearest Detector
gridCells

Construct Grid Cells
hornedlizard

Flat-tailed Horned Lizard Dataset
head

First or Last Part of an Object
logit

Logit Transformation
logmultinom

Multinomial Coefficient of SECR Likelihood
join

Combine or Split Sessions of capthist Object
homerange

Home Range Statistics
hcov

Hybrid Mixture Model
list.secr.fit

Fit Multiple SECR Models
kfn

Overlap Index
newdata

Create Default Design Data
intervals

Work with Open Population data
make.tri

Build Detector Array on Triangular or Hexagonal Grid
make.capthist

Construct capthist Object
make.mask

Build Habitat Mask
make.lacework

Construct Lacework Detector Design
make.spcosa

Construct Spatial Coverage Design
make.systematic

Construct Systematic Detector Design
makeStart

Initial Parameter Values
make.traps

Build Detector Array
modelAverage

Averaging of SECR Models Using Akaike's Information Criterion
nontarget

Non-target Data
ovensong

Ovenbird Acoustic Dataset
ovenbird

Ovenbird Mist-netting Dataset
mask.check

Mask Diagnostics
mask

Mask Object
plot.capthist

Plot Detection Histories
ms

Multi-session Objects
pdot

Net Detection Probability
occasionKey

Key to Petal Plot
plot.secr

Plot Detection Functions
pointsInPolygon

Points Inside Polygon
polyarea

Area of Polygon(s)
plot.popn

Plot Population Object
plotMaskEdge

Outline Around Mask Cells
possum

Brushtail Possum Trapping Dataset
plot.traps

Plot traps Object
popn

Population Object
plot.mask

Plot Habitat Mask, Density or Resource Surface
randomHabitat

Random Landscape
pmixProfileLL

Mixture Model Check
print.traps

Print Detectors
raster

Create a RasterLayer Object from Mask or Dsurface
rbind.popn

Combine popn Objects
print.capthist

Print Detections
predictDsurface

Predict Density Surface
predict.secr

SECR Model Predictions
rbind.traps

Combine traps Objects
rbind.capthist

Combine capthist Objects
print.secr

Print or Summarise secr Object
reduce

Combine Columns
read.traps

Read Detector Data From File
region.N

Population Size
secr-defunct

Defunct Functions in Package secr
secr-deprecated

Deprecated Functions in Package secr
score.test

Score Test for SECR Models
reduce.capthist

Combine Occasions Or Detectors
rectangularMask

Rectangular Mask
read.mask

Read Habitat Mask From File
read.telemetry

Import Telemetry Fixes
secr.refit

Repeat or Resume Model Fit
secrtest

Goodness-of-fit Test Results
secrdemo

SECR Models Fitted to Demonstration Data
secr-version5

Changes in secr 5.0
secr.design.MS

Construct Detection Model Design Matrices and Lookups
secr.fit

Spatially Explicit Capture--Recapture
Internal

Internal Functions
secr-package

Spatially Explicit Capture--Recapture Models
secrRNG

Random Number Seed
secr.test

Goodness-of-Fit Test
sim.capthist

Simulate Detection Histories
signal

Signal Fields
signalmatrix

Reformat Signal Data
shareFactorLevels

Fix Inconsistent Covariates
simOU.capthist

Simulate Detections For Ornstein-Uhlenbeck Movement
sim.popn

Simulate 2-D Population
sim.secr

Simulate From Fitted secr Model
sighting

Sighting Attributes
setNumThreads

Number of Threads
session

Session Vector
snip

Slice Transect Into Shorter Sections
subset.capthist

Subset or Split capthist Object
stoatDNA

Stoat DNA Data
speed

Speed Tips
spacing

Detector or Mask Spacing
subset.mask

Subset, Split or Combine Mask Objects
strip.legend

Colour Strip Legend
skink

Skink Pitfall Data
smooths

Smooth Terms in SECR Models
summary.traps

Summarise Detector Array
summary.mask

Summarise Habitat Mask
transformations

Transform Point Array
sort.capthist

Sort Rows of capthist or mask Object
subset.popn

Subset popn Object
summary.capthist

Summarise Detections
suggest.buffer

Mask Buffer Width
summary.popn

Summarise Simulated Population
turnover

Specifying a Dynamic Population
usagePlot

Plot usage, detections or sightings.
trap.builder

Complex Detector Layouts
Troubleshooting

Problems in Fitting SECR Models
Trend

Density Trend
trim

Drop Unwanted List Components
timevaryingcov

Time-varying Covariates
subset.traps

Subset traps Object
traps

Detector Array
traps.info

Detector Attributes
verify

Check SECR Data
write.captures

Write Data to Text File
userdist

Non-Euclidean Distances
usage

Detector Usage
updateCH

Update Old capthist Format
writeGPS

Upload to GPS
utility

Utility Functions
vcov.secr

Variance - Covariance Matrix of SECR Parameters
BUGS

Convert Data To Or From BUGS Format
read.capthist

Import or export data
AICcompatible

Model Compatibility
D.designdata

Construct Density Design Data
Fletcher.chat

Estimate overdispersion
FAQ

Frequently Asked Questions, And Others
CV

Coefficient of Variation
Dsurface

Density Surfaces
AIC.secr

Compare SECR Models
LLsurface

Plot Likelihood Surface