freq_data {LCCR} | R Documentation |
Convert capture-recapture configurations into frequency data
Description
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.
Usage
freq_data(R)
Arguments
R |
Matrix of size n (sample size) x J (number of capture occastions) of observed capture-recapture configurations |
Value
Y |
Matrix of frequency of each capture configuration of size n x (2^J) |
Author(s)
Francesco Bartolucci, Antonio Forcina
See Also
Examples
R = rbind(c(0,0,0,1),c(0,1,0,0),c(0,0,1,1),c(1,1,1,1))
Y = freq_data(R)
[Package LCCR version 1.3 Index]