powered by
A matrix showing the age of each animal at each secondary session (occasion).
age.matrix(capthist, initialage = 0, minimumage = 0, maximumage = 1, collapse = FALSE, unborn = minimumage)
Either a numeric matrix with dimensions (number of animals, number of secondary occasions) or if collapse = TRUE a character matrix with one column.
collapse = TRUE
single-session capthist object
numeric or character name of covariate with age at first detection (optional)
integer minimum age
integer maximum age
logical; if TRUE then values for each individual are collapsed as a string with no spaces
numeric code for age<0
age.matrix is used by openCR.design for the predictors `age' and `Age'.
age.matrix
openCR.design
Computations use the intervals attribute of capthist, which may be non-integer.
capthist
Ages are inferred for occasions before first detection, back to the minimum age.
age.matrix(join(ovenCH), maximumage = 2, collapse = TRUE)
Run the code above in your browser using DataLab