createJAGSinputs: Prep DABOM JAGS inputs

View source: R/createJAGSinputs.R

createJAGSinputsR Documentation

Prep DABOM JAGS inputs

Description

Construct all the necessary inputs to the DABOM JAGS model. Returns a named list that can be passed directly to JAGS.

Usage

createJAGSinputs(
  filter_ch = NULL,
  parent_child = NULL,
  configuration = NULL,
  by_origin = FALSE,
  fish_origin = NULL
)

Arguments

filter_ch

filtered capture history as returned by the 'filterDetections()' function in the 'PITcleanr' package, which has then been verified by a user and all blank or NA 'user_keep_obs' entries have been completed.

parent_child

data frame with at least 'parent' and 'child' columns. Can be created with 'buildParentChild()' function in the 'PITcleanr' package.

configuration

is a data frame which assigns node names to unique SiteID, AntennaID, and site configuration ID combinations. One example can be built with the function 'buildConfig'

by_origin

should Dirichlet vectors be created for each fish origin separately ('TRUE'), or be common to all origins ('FALSE')? Default is 'FALSE'

fish_origin

tibble containing columns of 'tag_code' and 'origin', where 'origin' is either "W" for wild or "H" for hatchery

Author(s)

Kevin See

Examples

createJAGSinputs_PRA()

KevinSee/DABOM documentation built on April 4, 2024, 9:28 a.m.