extract_mcmc_quant: Extract MCMC quantiles from models and return them in a...

View source: R/utils-extract-mcmc-quant.R

extract_mcmc_quantR Documentation

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

Description

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

Usage

extract_mcmc_quant(
  model_lst,
  model_names,
  type,
  inc_model_year = FALSE,
  end_yrs = year(Sys.time())
)

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

type

A name as found in an mcmccalcs object of a model object, for example extraction of: base_model$mcmccalcs$smed would require type = "smed"

inc_model_year

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

end_yrs

A vector of the end years for each model. If one value, it will apply to all models

Value

A tibble::tibble()


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