captureMh: This function simulates the capture process with a...

Description Usage Arguments Value

Description

This function simulates the capture process with a 2-component finite mixture model for individual heterogeneity.

Usage

1
captureMh(p, N, occ, traptype, K = NULL)

Arguments

p

a vector of size 3 containing the two capture probabilities and the mixture proportion p=c(p1,p2,mix)

N

an integer that is the true population size

occ

an integer that is the number of capture occasions to simulate

traptype

a character string specifying the trap type. "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.

K

an integer that is the number of traps to simulate if traptype="multi"

Value

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


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