prep_data: prep_data

Description Usage Arguments Value Author(s) References

Description

This function gets number of individuals, number of capture occasions, occasions of first capture and age from a capture-recapture dataset. Given a matrix of capture-recapture data (1 for detection, 2 for non-detection) at regular time periods, for instance years, when the first capture of an animal occurs during its birth year, at each year the age of that animal is known. Quantities nind and nyears are respectively the numbers of animals and of time units in this matrix.

Usage

1
prep_data(mydata)

Arguments

mydata

a matrix of 1's and 2's for detections and non-detections

Value

This function returns a list with components the number of individuals, the number of capture occasions, the occasion of first capture for each individual and the age of each individual over time.

Author(s)

Gilbert Marzolin, Olivier Gimenez

References

King R, Morgan BJT, Gimenez O and Brooks S (2009). Bayesian Analysis for Population Ecology. Chapman & Hall/CRC Interdisciplinary Statistics.

Robert CP and Casella G (2010). Introducing Monte Carlo Methods with R. Springer.


oliviergimenez/GammaGompertzCR documentation built on May 14, 2019, 6:15 p.m.