Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

histpos

Possible Capture Histories


Description

histpos.t builds the matrix of observable capture histories in terms of captures and misses for a capture-recapture experiment with t capture occasions.

histpos.0 builds the matrix of observable capture histories in terms of number of captures for each primary period of a robust design with vt capture occasions. For closed populations, vt=t and histpos.0 simply returns t:1.

Usage

histpos.t(t)
histpos.0(vt)

Arguments

t

The number of capture occasions.

vt

A vector containing the numbers of capture occasions for each primary sampling period of a robust design. The length of this vector equals the number of primary sampling periods (noted I).

Value

histpos.t gives a 2^t-1 by t matrix with rows representing capture histories. This matrix contains only zeros and ones.

histpos.0 gives a (t1+1)*(t2+1)* … *(tI+1)-1 by I matrix with rows representing possible capture histories in terms of number of captures. This matrix elements are integers between 0 and ti inclusively.

Note

The histpos.t function is called by descriptive, closedp, closedp.bc, closedp.Mtb, openp, robustd.t.

The histpos.0 function is called by robustd.0.

Author(s)

Louis-Paul Rivest Louis-Paul.Rivest@mat.ulaval.ca and Sophie Baillargeon

References

Baillargeon, S. and Rivest, L.P. (2007) Rcapture: Loglinear models for capture-recapture in R. Journal of Statistical Software, 19(5), http://www.jstatsoft.org/v19/i05.

See Also

Examples

histpos.t(5)
histpos.0(5)

histpos.0(rep(5, 3))

Rcapture

Loglinear Models for Capture-Recapture Experiments

v1.4-3
GPL-2
Authors
Louis-Paul Rivest [aut, cre], Sophie Baillargeon [aut]
Initial release
2019-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.