zinit | R Documentation |
Generates a matrix for use as starting values for the survival indicator in a JAGS or BUGS model for survival analysis, traditionally designated z
.
zinit(CH)
CH |
An individuals x time matrix of capture records, 1 if captured, 0 otherwise, no missing values. |
An individuals x time matrix with 1 in each row after the first capture; all other elements NA, including the first capture occasion.
Marc Kéry & Andy Royle
Kéry, M. & Royle, J.A. (2021) Applied Hierarchical Modeling in Ecology AHM2 - 3.2.3.
# Generate a fake capture history
( ch <- matrix(rbinom(30, 1, 0.5), 6, 5) )
zinit(ch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.