simdataClosed {multimark} | R Documentation |
Simulate closed population capture-mark-recapture data arising from multiple non-invasive marks
Description
This function generates encounter histories from simulated closed population capture-mark-recapture data consisting of multiple non-invasive marks.
Usage
simdataClosed(
N = 100,
noccas = 5,
pbeta = -0.4,
tau = 0,
sigma2_zp = 0,
delta_1 = 0.4,
delta_2 = 0.4,
alpha = 0.5,
data.type = "never",
link = "logit"
)
Arguments
N |
True population size or abundance. |
noccas |
The number of sampling occasions. |
pbeta |
Logit- or probit-scale intercept term(s) for capture probability (p). Must be a scaler or vector of length |
tau |
Additive logit- or probit-scale behavioral effect term for recapture probability (c). |
sigma2_zp |
Logit- or probit-scale individual heterogeneity variance term. |
delta_1 |
Conditional probability of type 1 encounter, given detection. |
delta_2 |
Conditional probability of type 2 encounter, given detection. |
alpha |
Conditional probability of simultaneous type 1 and type 2 detection, given both types encountered. Only applies when |
data.type |
Specifies the encounter history data type. All data types include non-detections (type 0 encounter), type 1 encounter (e.g., left-side), and type 2 encounters (e.g., right-side). When both type 1 and type 2 encounters occur for the same individual within a sampling occasion, these can either be "non-simultaneous" (type 3 encounter) or "simultaneous" (type 4 encounter). Three data types are currently permitted:
|
link |
Link function for detection probability. Must be " |
Value
A list containing the following:
Enc.Mat |
A matrix containing the observed encounter histories with rows corresponding to individuals and columns corresponding to sampling occasions. |
trueEnc.Mat |
A matrix containing the true (latent) encounter histories with rows corresponding to individuals and columns corresponding to sampling occasions. |
Author(s)
Brett T. McClintock
References
Bonner, S. J., and Holmberg J. 2013. Mark-recapture with multiple, non-invasive marks. Biometrics 69: 766-775.
McClintock, B. T., Conn, P. B., Alonso, R. S., and Crooks, K. R. 2013. Integrated modeling of bilateral photo-identification data in mark-recapture analyses. Ecology 94: 1464-1471.
See Also
Examples
#simulate data for data.type="sometimes" using defaults
data<-simdataClosed(data.type="sometimes")