apply_fallback_rates: applies the estimated fallback rates to the estiamted...

View source: R/apply_fallback_rates_summarize.R

apply_fallback_ratesR Documentation

applies the estimated fallback rates to the estiamted ascension composition to yield estimated escapement

Description

applies the estimated fallback rates to the estiamted ascension composition to yield estimated escapement

Usage

apply_fallback_rates(
  breakdown,
  fallback_rates,
  split_H_fallback = c("var1", "var2", "both"),
  split_HNC_fallback = c("var1", "var2", "both"),
  split_W_fallback = c("var1", "var2", "both"),
  H_groups = NULL,
  HNC_groups = NULL,
  W_groups = NULL,
  stratAssign_fallback,
  stratAssign_comp,
  alpha_ci = 0.1,
  output_type = c("summary", "W_boot", "full")
)

Arguments

breakdown

The output of either HNC_expand_unkGSI, HNC_expand, or ascension_composition

fallback_rates

The fallback rates portion of the output of nightFall

split_H_fallback

one of "var1", "var2", or "both" indicating which variable(s) should be used to link estimates of composition with fallback rates for "H" fish

H_groups

NULL to get templates returned, or a tibble linking categories to stockGroups

HNC_groups

NULL to get templates returned, or a tibble linking categories to stockGroups

W_groups

NULL to get templates returned, or a tibble linking categories to stockGroups

stratAssign_fallback

tibble with sWeek, stockGroup, stratum showing what stratum each sWeek corresponds to for each stockGroup

stratAssign_comp

tibble with sWeek, stratum showing what stratum each sWeek corresponds to for composition estimation using the trap data

alpha_ci

the alpha value for CI calculation

output_type

one of "summary", "W_boot", or "full" dependign on the output type you want

split_HNC_fallbackone

of "var1", "var2", or "both" indicating which variable(s) should be used to link estimates of composition with fallback rates for "HNC" fish

split_W_fallbackone

of "var1", "var2", or "both" indicating which variable(s) should be used to link estimates of composition with fallback rates for "W" fish


delomast/escapeLGD documentation built on June 9, 2025, 10:52 p.m.