split_catch_maturity: Split catch densities by mass ratio of maturity classes

Description Usage Arguments Examples

View source: R/mature-biomass-est.R

Description

Split catch densities by mass ratio of maturity classes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
split_catch_maturity(
  survey_sets,
  fish,
  bath,
  survey = c("SYN HS", "SYN QCS"),
  years = NULL,
  year_re = TRUE,
  sample_id_re = FALSE,
  cutoff_quantile = 0.9995,
  p_threshold = 0.5,
  use_median_ratio = FALSE,
  plot = FALSE
)

Arguments

survey_sets

Data from get_survey_sets.

fish

Data from get_survey_samples.

survey

List of survey abbreviations.

years

List of years. Default 'NULL' includes all years.

cutoff_quantile

Set max cutoff for mass modeled from lengths.

p_threshold

Probability of maturity to split at. Default = 0.5. Alternatives are 0.05 or 0.95.

plot

Logical for whether to produce plots (length-weight and length-at-maturity relationships).

Examples

1
2
3
4
5
6
7
8
9
events <- readRDS("analysis/VOCC/data/event-data-pop-1n3.rds")
fish <- readRDS("analysis/VOCC/data/bio-data-pop-1n3.rds")

biomass <- split_catch_maturity(events, fish, bath,
  survey = c("SYN HS", "SYN QCS"),
  years = NULL,
  cutoff_quantile = 0.9995,
  plot = TRUE
)

pbs-assess/gfranges documentation built on Dec. 13, 2021, 4:50 p.m.