freq_data: Convert capture-recapture configurations into frequency data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/freq_data.R

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

1

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

aggr_data

Examples

1
2
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)

LCCR documentation built on Dec. 11, 2021, 9:30 a.m.