calcAbundPost: Calculate Abundance Posteriors

View source: R/calcAbundPost.R

calcAbundPostR Documentation

Calculate Abundance Posteriors

Description

Combines estimates of total escapement from STADEM with transition probabilities from DABOM to generate estimates of escapement above various detection sites.

Usage

calcAbundPost(
  move_post = NULL,
  abund_post = NULL,
  bootstrap_samp = 2000,
  .move_vars = c("origin", "param"),
  .abund_vars = c("origin"),
  time_vary_param_nm = NULL
)

Arguments

move_post

posterior draws of movement parameters, as generated by 'extractTransPost()' and 'compileTransProbs()'. Should contain columns named 'chain', 'iter' and 'value'.

abund_post

posterior draws of total abundance. Should contain columns named 'chain', 'iter' and 'tot_abund'.

bootstrap_samp

The number of samples to be drawn from the posteriors of the STADEM model and the DABOM model.

time_vary_param_nm

column name describing the time-varying strata for each location. Default value is 'strata_num'.

Author(s)

Kevin See

Examples

#calcAbundPost()

mackerman44/DABOM documentation built on April 3, 2024, 6:51 a.m.