initialize_z: Set initial known-state values prior to JAGS MCMC

View source: R/outcome_funs.R

initialize_zR Documentation

Set initial known-state values prior to JAGS MCMC

Description

This function is used in estimate_outcomes Used to initialize the latent variable z in the JAGS MCMC. Sets z = 1 for all time steps in between the first sighting and the last sighting.

Usage

initialize_z(ch)

Arguments

ch

Capture history, i.e., matrix of nest visits

Value

A matrix of initial states for each nesting attempt


picardis/nestR documentation built on July 2, 2024, 6:35 p.m.