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

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

Kevin See

Examples

createJAGSinputs_PRA()
#> Error in createJAGSinputs_PRA(): could not find function "createJAGSinputs_PRA"