Learn R Programming

hierarchicalDS (version 3.0)

simulate_data: function to simulate double observer spatial distance sampling data subject to possible zero inflation and species misidentification

Description

function to simulate double observer spatial distance sampling data subject to possible zero inflation and species misidentification

Usage

simulate_data(S, Observers, ZIP = TRUE, misID = TRUE, tau.pois = 15,
  tau.bern = 20)

Arguments

S

number of spatial strata (a single transect is placed in each strata and assumed to cover the whole strata)

Observers

A (2 x S) matrix giving the observer identity for each transect

ZIP

If TRUE, simulate abundance using a zero-inflated Poisson model

misID

If TRUE, assume species misidentification

tau.pois

Precision of the ICAR process for Poisson abundance

tau.bern

Precision of the ICAR process for zero inflation

Value

a distance sampling dataset