Learn R Programming

Distance (version 2.0.1)

Distance Sampling Detection Function and Abundance Estimation

Description

A simple way of fitting detection functions to distance sampling data for both line and point transects. Adjustment term selection, left and right truncation as well as monotonicity constraints and binning are supported. Abundance and density estimates can also be calculated (via a Horvitz-Thompson-like estimator) if survey area information is provided. See Miller et al. (2019) for more information on methods and for example analyses.

Copy Link

Version

Install

install.packages('Distance')

Monthly Downloads

1,554

Version

2.0.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Laura Marshall

Last Published

July 11th, 2025

Functions in Distance (2.0.1)

Stratify_example

Simulated minke whale data
logLik.dsmodel

log-likelihood value for a fitted detection function
make_activity_fn

Multiplier bootstrap helper functions
amakihi

Hawaiian amakihi point transect data
dummy_ddf

Detection function objects when detection is certain
add_df_covar_line

Add covariate levels detection function plots
flatfile

The flatfile data format
summary.dht_bootstrap

Summarize bootstrap abundance uncertainty estimate output
summary.dsmodel

Summary of distance sampling analysis
bootdht_Nhat_summarize

Simple summary of abundance results for bootstrap model
capercaillie

Capercaillie in Monaughty Forest
Savannah_sparrow_1980

Savanna sparrow point transects
Systematic_variance_1

Simulation of encounter rate variance
print.dsmodel

Simple pretty printer for distance sampling analyses
print.summary.dsmodel

Print summary of distance detection function model object
ducknest

Ducknest line transect survey data
ds.gof

Goodness of fit tests for distance sampling models
create.bins

Create bins from a set of binned distances and a set of cutpoints.
create_bins

Create bins from a set of binned distances and a set of cutpoints.
bootdht

Bootstrap uncertainty estimation for distance sampling models
bootdht_Dhat_summarize

Simple summary of density results for bootstrap model
dht2

Abundance estimation for distance sampling models
plot.dsmodel

Plot a fitted detection function
predict.dsmodel

Predictions from a fitted detection function
summarize_ds_models

Make a table of summary statistics for detection function models
predict.fake_ddf

Prediction for fake detection functions
unflatten

Unflatten flatfile data.frames
print.dht_result

Print abundance estimates
ds

Fit detection functions and calculate abundance from line or point transect data
unimak

Simulated line transect survey data with covariates
sikadeer

Sika deer pellet data from southern Scotland
units_table

Generate table of unit conversions
gof_ds

Goodness of fit testing and quantile-quantile plots
p_dist_table

Distribution of probabilities of detection
golftees

Golf tee data
minke

Simulated minke whale data
wren

Steve Buckland's winter wren surveys
ClusterExercise

Simulated minke whale data with cluster size
AIC.dsmodel

Akaike's An Information Criterion for detection functions
QAIC

Tools for model selection when distance sampling data are overdispersed
PTExercise

Simulated point transect survey data
CueCountingExample

Cue counts of whale blows
ETP_Dolphin

Eastern Tropical Pacific spotted dolphin survey
Distance-package

Distance sampling
convert_units

Convert units for abundance estimation
checkdata

Check that the data supplied to ds is correct
LTExercise

Simulated line transect survey data
DuikerCameraTraps

Duiker camera trap survey