sim.mix: Simulation of distance sampling data via mixture models...

View source: R/sim.mix.R

sim.mixR Documentation

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)

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)

Value

distances a vector of distances

Note

At the moment this is TOTALLY UNSUPPORTED! Please don't use it for anything important!

Author(s)

David Lawrence Miller


mrds documentation built on May 29, 2024, 3:56 a.m.