prep_jags_cjs: Prepare Bayesian CJS Model

View source: R/prep_jags_cjs.R

prep_jags_cjsR Documentation

Prepare Bayesian CJS Model

Description

Prepares a list of data to be fed into a Bayesian CJS model

Usage

prep_jags_cjs(
  cap_hist_wide = NULL,
  tag_meta = NULL,
  drop_col_nm = "duty_cycle",
  drop_values = c("batch_2", "batch_3")
)

Arguments

cap_hist_wide

wide capture history, one row per tag, one column per detection site. Includes columns named tag_id and cap_hist. Part of the output from prep_capture_history.

tag_meta

metadata for each tag, including a column named tag_id.

drop_col_nm

name of column in tag_meta to be used to filter out any particular tags.

drop_values

character vector of values in drop_col_nm column of tag_meta that should be excluded from the CJS model.

Value

list to be fed into JAGS model

Author(s)

Kevin See and Mike Ackerman


mackerman44/telemetyr documentation built on Feb. 15, 2025, 1:08 a.m.