get_posterior_data: Get the posterior values for the given regular expressions of...

View source: R/utils-get-posterior-data.R

get_posterior_dataR Documentation

Get the posterior values for the given regular expressions of parameter names

Description

Get the posterior values for the given regular expressions of parameter names

Usage

get_posterior_data(
  model,
  params_regex = key_posteriors,
  params_titles = key_posteriors_titles,
  ...
)

Arguments

model

The SS model output as loaded by create_rds_file()

params_regex

A vector of regular expressions used to extract data for parameter names. Default value is key_posteriors

params_titles

A list of names for the given elements of params_regex. Default value is key_posteriors_titles

...

Absorbs arguments intended for other functions

Value

A data frame of posterior vectors, one column for each of the regular expressions in params_regex

Examples

## Not run: 
get_posterior_data(base_model, "BH_steep")
get_posterior_data(base_model, "e")
get_posterior_data(base_model, "asdfg")
get_posterior_data(base_model, c("NatM", "SR_LN", "SR_BH_steep",
 "Q_extraSD"))

## End(Not run)

pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.