sim.ldata | R Documentation |
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.
sim.ldata(N = 200, sigma = 30, show.plot = TRUE)
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. |
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 |
Marc Kéry & Andy Royle
Kéry, M. & Royle, J.A. (2016) Applied Hierarchical Modeling in Ecology AHM1 - 8.2.3.
# Simulate a data set with the default arguments and look at the structure of the output:
tmp <- sim.ldata()
str(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.