Description Usage Arguments Value
This function simulates the hair deposition process
1 2 |
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.