extract_survey_index_fits: Extract index fit MCMC quantiles from models and return them...

View source: R/utils-extract-survey-index-fits.R

extract_survey_index_fitsR Documentation

Extract index fit MCMC quantiles from models and return them in a ggplot2::ggplot()-ready data frame

Description

Extract index fit MCMC quantiles from models and return them in a ggplot2::ggplot()-ready data frame

Usage

extract_survey_index_fits(
  model_lst,
  model_names,
  survey_type = c("age1", "age2"),
  type = c("index_med", "index_lo", "index_hi"),
  inc_model_year = FALSE
)

Arguments

model_lst

A list of models, each created by create_rds_file()

model_names

A vector of model names,the same length as models_lst

survey_type

The type of survey, must be one of age1 or age2. age2 means age 2+ acoustic survey and 'age1“is the age 1 acoustic survey

type

A name as found in the extra_mcmc[[type]] object of a model objects, for example if type == index.med, it is a table of index fit

inc_model_year

Logical. If TRUE, include the model and year columns in the output data frame

Value

A tibble::tibble()


pacific-hake/hake-assessment documentation built on July 21, 2024, 8:19 a.m.