simLdata: Simulation of distance sampling data.

sim.ldataR Documentation

Simulation of distance sampling data.

Description

Simulates non-hierarchical line transect data under conventional distance sampling (CDS). It subjects N individuals to sampling, and then retains the value of distance from transect only for individuals that are captured.

Usage

sim.ldata(N = 200, sigma = 30, show.plot = TRUE)

Arguments

N

number of individuals along transect with distance Uniform(-100, 100)

sigma

scale parameter of half-normal detection function

show.plot

choose whether to show plots or not. Set to FALSE when using function in simulations.

Value

A list with the following elements:

N

the number of individuals along the transect

sigma

scale parameter of half-normal detection function

xall

distance from the transect line for all N individuals

x

absolute distance from the transect line for those individuals detected

Author(s)

Marc Kéry & Andy Royle

References

Kéry, M. & Royle, J.A. (2016) Applied Hierarchical Modeling in Ecology AHM1 - 8.2.3.

Examples

# Simulate a data set with the default arguments and look at the structure of the output:
tmp <- sim.ldata()
str(tmp)

AHMbook documentation built on Sept. 12, 2024, 6:37 a.m.