Learn R Programming

mrds (version 2.3.0)

sim.mix: Simulation of distance sampling data via mixture models Allows one to simulate line transect distance sampling data using a mixture of half-normal detection functions.

Description

Simulation of distance sampling data via mixture models Allows one to simulate line transect distance sampling data using a mixture of half-normal detection functions.

Usage

sim.mix(n, sigma, mix.prop, width, means = 0)

Value

distances a vector of distances

Arguments

n

number of samples to generate

sigma

vector of scale parameters

mix.prop

vector of mixture proportions (same length as sigma)

width

truncation

means

vector of means (used to generate wacky, non-monotonic data)

Author

David Lawrence Miller