Learn R Programming

Rcapture (version 1.1)

histfreq: 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 e
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^{\mbox{sum(vt)}}-1$ capture histories ordered as in histpos.t. histfreq.0 returns a vector of frequencies for the $(t_1+1)\times(t_2+1)\times \cdots \times(t_I+1)-1$ capture histories ordered as in histpos.0 .

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

Run this code
data(mvole)

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

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

Run the code above in your browser using DataLab