processdata {multimark} | R Documentation |
Generate model inputs for fitting 'multimark' models
Description
This function generates an object of class multimarksetup
that is required to fit ‘multimark’ models.
Usage
processdata(
Enc.Mat,
data.type = "never",
covs = data.frame(),
known = integer()
)
Arguments
Enc.Mat |
A matrix of observed encounter histories with rows corresponding to individuals and columns corresponding to sampling occasions (ignored unless |
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:
|
covs |
A data frame of temporal covariates for detection probabilities (ignored unless |
known |
Optional integer vector indicating whether the encounter history of an individual is known with certainty (i.e., the observed encounter history is the true encounter history). Encounter histories with at least one type 4 encounter are automatically assumed to be known, and |
Value
An object of class multimarksetup
.
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
multimarksetup-class
, multimarkClosed
, bobcat
Examples
# This example is excluded from testing to reduce package check time
# Example uses unrealistically low values for nchain, iter, and burnin
#Generate object of class "multimarksetup"
setup <- processdata(bobcat)
#Run single chain using the default model for bobcat data
bobcat.dot<-multimarkClosed(mms=setup)
#Run single chain for bobcat data with temporal effects (i.e., mod.p=~time)
bobcat.time <- multimarkClosed(mms=setup,mod.p=~time)