Learn R Programming

secr (version 5.2.4)

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,551

Version

5.2.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Murray Efford

Last Published

June 13th, 2025

Functions in secr (5.2.4)

AICcompatible

Model Compatibility
BUGS

Convert Data To Or From BUGS Format
D.designdata

Construct Density Design Data
LLsurface

Plot Likelihood Surface
CV

Coefficient of Variation
Dsurface

Density Surfaces
read.capthist

Import or export data
plot.MCgof

Methods for MCgof Objects
addCovariates

Add Covariates to Mask or Traps
RSE

RSE from Fitted Model
OVpossum

Orongorongo Valley Brushtail Possums
Rsurface

Smoothed Resource Surface
LR.test

Likelihood Ratio Test
MCgof

Monte Carlo Goodness-of-fit for SECR Models
RMarkInput

Convert Data to RMark Input Format
Parallel

Multi-core Processing
PG

Telemetry Fixes in Polygons
capthist

Spatial Capture History Object
as.popn

Coerce ppp object to popn
as.data.frame

Coerce capthist to Data Frame or Array
as.mask

Coerce traps object to mask
addSightings

Mark-resight Data
addTelemetry

Combine Telemetry and Detection Data
capthist.parts

Dissect Spatial Capture History Object
autoini

Initial Parameter Values for SECR
coef.secr

Coefficients of secr Object
collate

Array of Parameter Estimates
cluster

Detector Clustering
confint.secr

Profile Likelihood Confidence Intervals
chat

Overdispersion of Activity Centres
closedN

Closed population estimates
nk

Number per detector
closure.test

Closure tests
circular

Circular Probability
clone

Replicate Rows
binCovariate

Add Binned Covariate
blackbear

Black Bear Hair Snag Dataset
covariates

Covariates Attribute
deleteMaskPoints

Edit Mask Points
detector

Detector Type
contour

Contour Detection Probability
deermouse

Deermouse Live-trapping Datasets
detectfn

Detection Functions
details

Detail Specification for secr.fit
derived

Derived Parameters of Fitted SECR Model
housemouse

House mouse live trapping data
derivedDsurface

Derived Absolute Density
distancetotrap

Distance To Nearest Detector
expected.n

Expected Number of Individuals
fxTotal

Activity Centres of Detected and Undetected Animals
ellipse.secr

Confidence Ellipses
empirical.varD

Empirical Variance of H-T Density Estimate
discretize

Rasterize Area Search or Transect Data
deviance

Deviance of fitted secr model and residual degrees of freedom
extractMoves

Simulated Movements
fxi

Probability Density of Activity Centre
esaPlot

Mask Buffer Diagnostic Plot
logit

Logit Transformation
list.secr.fit

Fit Multiple SECR Models
gridCells

Construct Grid Cells
kfn

Overlap Index
join

Combine or Split Sessions of capthist Object
homerange

Home Range Statistics
head

First or Last Part of an Object
logmultinom

Multinomial Coefficient of SECR Likelihood
hornedlizard

Flat-tailed Horned Lizard Dataset
hcov

Hybrid Mixture Model
intervals

Work with Open Population data
make.capthist

Construct capthist Object
makeStart

Initial Parameter Values
make.lacework

Construct Lacework Detector Design
newdata

Create Default Design Data
make.tri

Build Detector Array on Triangular or Hexagonal Grid
make.mask

Build Habitat Mask
make.spcosa

Construct Spatial Coverage Design
make.systematic

Construct Systematic Detector Design
make.traps

Build Detector Array
modelAverage

Averaging of SECR Models Using Akaike's Information Criterion
ms

Multi-session Objects
ovenbird

Ovenbird Mist-netting Dataset
ovensong

Ovenbird Acoustic Dataset
mask

Mask Object
mask.check

Mask Diagnostics
pdot

Net Detection Probability
plot.capthist

Plot Detection Histories
plot.secr

Plot Detection Functions
plot.traps

Plot traps Object
plotMaskEdge

Outline Around Mask Cells
pmixProfileLL

Mixture Model Check
nontarget

Non-target Data
occasionKey

Key to Petal Plot
popn

Population Object
possum

Brushtail Possum Trapping Dataset
plot.popn

Plot Population Object
plot.mask

Plot Habitat Mask, Density or Resource Surface
rbind.traps

Combine traps Objects
rbind.popn

Combine popn Objects
print.traps

Print Detectors
randomHabitat

Random Landscape
predict.secr

SECR Model Predictions
predictDsurface

Predict Density Surface
print.secr

Print or Summarise secr Object
region.N

Population Size
secr-defunct

Defunct Functions in Package secr
read.mask

Read Habitat Mask From File
print.capthist

Print Detections
read.telemetry

Import Telemetry Fixes
read.traps

Read Detector Data From File
rectangularMask

Rectangular Mask
score.test

Score Test for SECR Models
raster

Create a RasterLayer Object from Mask or Dsurface
pointsInPolygon

Points Inside Polygon
polyarea

Area of Polygon(s)
reduce.capthist

Combine Occasions Or Detectors
reduce

Combine Columns
rbind.capthist

Combine capthist Objects
secr-deprecated

Deprecated Functions in Package secr
secr-version5

Changes in secr 5.0
Internal

Internal Functions
secr.refit

Repeat or Resume Model Fit
secr-package

Spatially Explicit Capture--Recapture Models
secr.fit

Spatially Explicit Capture--Recapture
secr.design.MS

Construct Detection Model Design Matrices and Lookups
secrRNG

Random Number Seed
secr.test

Goodness-of-Fit Test
secrdemo

SECR Models Fitted to Demonstration Data
secrtest

Goodness-of-fit Test Results
sim.secr

Simulate From Fitted secr Model
sim.popn

Simulate 2-D Population
sighting

Sighting Attributes
session

Session Vector
shareFactorLevels

Fix Inconsistent Covariates
sim.capthist

Simulate Detection Histories
setNumThreads

Number of Threads
skink

Skink Pitfall Data
signal

Signal Fields
signalmatrix

Reformat Signal Data
speed

Speed Tips
strip.legend

Colour Strip Legend
stoatDNA

Stoat DNA Data
smooths

Smooth Terms in SECR Models
subset.mask

Subset, Split or Combine Mask Objects
subset.capthist

Subset or Split capthist Object
snip

Slice Transect Into Shorter Sections
sort.capthist

Sort Rows of capthist or mask Object
spacing

Detector or Mask Spacing
subset.popn

Subset popn Object
timevaryingcov

Time-varying Covariates
summary.capthist

Summarise Detections
trap.builder

Complex Detector Layouts
subset.traps

Subset traps Object
summary.popn

Summarise Simulated Population
suggest.buffer

Mask Buffer Width
summary.traps

Summarise Detector Array
summary.mask

Summarise Habitat Mask
transformations

Transform Point Array
Trend

Density Trend
traps.info

Detector Attributes
usagePlot

Plot usage, detections or sightings.
utility

Utility Functions
usage

Detector Usage
userdist

Non-Euclidean Distances
traps

Detector Array
trim

Drop Unwanted List Components
write.captures

Write Data to Text File
writeGPS

Upload to GPS
vcov.secr

Variance - Covariance Matrix of SECR Parameters
verify

Check SECR Data
Troubleshooting

Problems in Fitting SECR Models
turnover

Specifying a Dynamic Population
updateCH

Update Old capthist Format
AIC.secr

Compare SECR Models
FAQ

Frequently Asked Questions, And Others
Fletcher.chat

Estimate overdispersion