deposit: This function simulates the hair deposition process

Description Usage Arguments Value

Description

This function simulates the hair deposition process

Usage

1
2
deposit(W, lambda_h, traptype = "multi", K, cluster = FALSE,
  lambda_c = NULL)

Arguments

W

a capture history of dimension N x occ if traptype="single" or N x occ x K if traptype="multi"

lambda_h

a positive value specifying the parameter for the zero-truncated Poisson hair deposition process (S_ijk|W_ijk=1)

traptype

a character string specifying the capture process. "single" allows individuals to be caught in at most 1 trap per occasion and "multi" allows individuals to be caught in multiple traps per occasion. If traptype="single", a trap id is randomly assigned to each capture

K

an integer that is the number of traps to simulate

cluster

a logical indicating whether or not to simulate from the cluster model (multiple clusters per individual-occasion-trap)

lambda_c

a positive value specifying the parameter for the zero-truncated Poisson cluster deposition process for the cluster model

Value

S a "hair capture history" containing the number of hair samples deposited by individual i on occasion j in trap k and if for cluster=TRUE, at cluster l. S is of dimension N x occ x K if cluster=FALSE and dimension N x occ x K x Lmax if cluster=TRUE, where Lmax is the maximum observed number of clusters deposited across trap-occasions


benaug/Mbmisscap documentation built on May 12, 2019, 10:56 a.m.