do_discard_bootstrap.Rd
Bootstrap uncertainty and summarize WCGOP discard data
do_discard_bootstrap(
dir = NULL,
data,
species,
boot_number,
gear_groups,
gear_names,
fleet_colname,
fleet_groups,
fleet_names,
seed_number = 1,
rm_em_data = FALSE
)
Directory location to save files.
A data frame of WCGOP catch data
species name that should match the name in the ob data file, can be single species or multiple names (e.g. c("Gopher Rockfish", "Black and Yellow Rockfish"))
The number of bootstraps to conduct
List of gear types to group together (example: list(c("Bottom Trawl", "Midwater Trawl"), c("Hook & Line", "Pot", "Shrimp Trawl"))).
Column to use to determine areas for fleets (example: "r_state.x")
List of fleet groups to use (example: list(c("WA", "OR", "CA"))).
Vector of fleet names (example: c("coastwide")).
The seed number.
Logical indicating whether EM records should be removed from the observer catch records (OBCatch) data file.
Vector of gear group names (example: c("trawl", "fixed gear")).