histfreq {Rcapture}R Documentation

Frequencies of the Possible Capture Histories

Description

These functions compute the frequencies of all possible capture histories.
histfreq.t is used for the 2^t-1 observable capture histories genereted by histpos.t in terms of captures and misses for each of the t capture occasions.
histfreq.0 is used for observable capture histories genereted by histpos.0 in terms of the numbers of captures in the primary periods of a robust design with vt capture occasions.

Usage

histfreq.t(X, dfreq=FALSE)
histfreq.0(X, dfreq=FALSE, vt)

Arguments

X The table of the observed capture histories in one of the two accepted formats. In the default format, it has one row per unit captured in the experiment. In this case, the number of columns in the table represents the number of capture occasions in the experiment (noted t). In the alternative format, it contains one row per capture history followed by its frequency. In that case, X has t+1 columns. The first t columns of X, identifying the capture histories, must contain only zeros and ones. The number one indicates a capture.
dfreq This argument specifies the format of the data matrix X. By default, it is set to FALSE, which means that X has one row per unit. If it is set to TRUE, then the matrix X contains frequencies in its last column.
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

histfreq.t returns a vector of frequencies for the 2^t - 1 or 2^sum(vt)-1 capture histories ordered as in histpos.t.
histfreq.0 returns a vector of frequencies for the (t1+1)*(t2+1)* cdots *(tI+1)-1 capture histories ordered as in histpos.0 .

Note

The histfreq.t function is called by descriptive, closedp, closedp.bc, closedp.Mtb, closedp.mX, closedp.h, periodhist, openp, robustd.t, robustd.0.

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

Author(s)

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

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/

See Also

histpos.t, histpos.0, descriptive

Examples

data(mvole)

period3<-mvole[,11:15]
histfreq.t(period3)

histfreq.0(mvole[,1:15],vt=rep(5,3))

[Package Rcapture version 1.1 Index]