classMembership: Class Membership Probability for Mixture Models
Description
Finite mixture models treat class membership as a latent random variable. The probability of an individual's membership in each class may be inferred retrospectively from the relative likelihoods.
Usage
# S3 method for openCR
classMembership(object, fullCH = NULL, ...)
Value
Matrix with one row per individual and columns for each class and the class number of the most likely class.
Arguments
object
fitted model of class openCR
fullCH
capthist object (optional)
...
other arguments (not used)
Details
It is assumed that the input model includes finite mixture terms (h2 or h3).
As the detection histories are saved in compressed (``squeezed'') form in openCR objects the original animal identifiers are lost and the order of animals may change. These may be restored by providing fullCH.
No class can be assigned from a CJS model for animals detected only in the final session.