load_extra_mcmc_age_comps: Load the age composition estimates from the extra MCMC output

View source: R/load-extra-mcmc-age-comps.R

load_extra_mcmc_age_compsR Documentation

Load the age composition estimates from the extra MCMC output

Description

Load the age composition estimates from the extra MCMC output

Usage

load_extra_mcmc_age_comps(
  compreps,
  verbose = TRUE,
  start_yr = NULL,
  end_yr = NULL,
  progress_n,
  ret_quants = TRUE,
  ...
)

Arguments

compreps

A list of vectors representing one element per compreport file

verbose

Logical. If TRUE, show messages

start_yr

Filter years earlier than this out of the results. If NULL, no filtering will occur for the start year

end_yr

Filter years greater than this out of the results. If NULL, no filtering will occur for the end year

progress_n

Report every time this many list items are processed. Consider how many posteriors there are, this should be a fairly large proportion of that (around 1/8th) or there will be too much output and it will run really slow

ret_quants

Logical. If TRUE, return the quantiles of the data. If FALSE, return all posteriors (the iter column will be present in this case)

...

Arguments passed to load_extra_mcmc_get_chunk()

Value

A data frame with columns fleet, yr, iter (posterior number) and a column for each age in the output. If ret_quants is TRUE, the data frame will be in the long format and have columns fleet, yr, age, and one column for each of the quantiles found in the probs variable (normally 2.5%, 50%, and 97.5%)


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.