get_prior_data: Get the prior and MLE values for the given regular...

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

get_prior_dataR Documentation

Get the prior and MLE values for the given regular expressions of parameter names

Description

Get the prior and MLE values for the given regular expressions of parameter names

Usage

get_prior_data(
  model,
  params_regex = key_posteriors,
  params_titles = key_posteriors_titles,
  n_points_prior = 1e+05,
  ...
)

Arguments

model

A model object as created 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

n_points_prior

An integer specifying the number of points you want to be generated from the ⁠r<distribution>()⁠ function, e.g., rnorm(n_points_prior).

...

Absorbs arguments intended for other functions

Value

A list of prior and MLE data, one for each of the regular expressions in params_regex

Examples

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

## End(Not run)

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