freq_data function

Convert capture-recapture configurations into frequency data

Convert capture-recapture configurations into frequency data

Given a matrix of observed capture-recapture configurations, convert the data to a matrix of frequencies having the same number of rows and a number of columns equal to the number of possible configurations.

freq_data(R,count=rep(1,nrow(R)))

Arguments

  • R: Matrix of size n (sample size) x J (number of capture occastions) of observed capture-recapture configurations
  • count: Vector of counts for each configuration

Returns

  • Y: Matrix of frequency of each capture configuration of size n x (2^J)

Author(s)

Francesco Bartolucci, Antonio Forcina

See Also

aggr_data

Examples

R = rbind(c(0,0,0,1),c(0,1,0,0),c(0,0,1,1),c(1,1,1,1),c(1,1,1,1)) Y = freq_data(R)
  • Maintainer: Francesco Bartolucci
  • License: GPL (>= 2)
  • Last published: 2025-03-22

Useful links