run_mses: Run the MSE for a number of runs for any scenarios

View source: R/run_mses.R

run_msesR Documentation

Run the MSE for a number of runs for any scenarios

Description

Run the MSE for a number of runs for any scenarios

Usage

run_mses(
  n_runs = 10,
  n_sim_yrs = NULL,
  fns = NULL,
  plot_names = NULL,
  tacs = c(0, 1),
  attains = c(1, 1),
  c_increases = 0,
  m_increases = 0,
  sel_changes = 0,
  n_surveys = 2,
  b_futures = 0.5,
  random_seed = 12345,
  single_seed = NULL,
  results_root_dir = here("results"),
  results_dir = here("results", "default"),
  catch_floor = NULL,
  hcr_apply = FALSE,
  ...
)

Arguments

n_runs

Then number of runs to do for each simulation

n_sim_yrs

The number of years to simulate into the future

fns

A vector of file names for the scenarios (.rds files). .rds extension is optional

plot_names

A vector of strings to use for the scenarios later when plotting. Must either be NULL or the same length as fns

tacs

A vector of TAC values to be passed to the run_mse_scenario() function, in the same order as the fns file names, or a single value

attains

A vector of 2, in the order Canada, US for proportion of catch to include

c_increases

Increase in max movement. A vector of values to be passed to the run_mse_scenario() function, in the same order as the fns file names, or a single value which will be used for all scenarios

m_increases

Decrease of spawners returning south. A vector of values to be passed to the run_mse_scenario() function, in the same order as the fns file names, or a single value which will be used for all scenarios

sel_changes

Selectivity scenario change type. A vector of values to be passed to the run_mse_scenario() function, in the same order as the fns file names, or a single value which will be used for all scenarios

n_surveys

The number of surveys for each run. This must be a vector of the same length as fns or NULL. If NULL, 2 will be used for every scenario

b_futures

A vector of values to be passed to the run_mse_scenario() function for bias adjustment into the future, in the same order as the fns file names, or a single value which will be used for all scenarios

random_seed

A seed value to use when calling for all random functions

single_seed

If NULL, ignore. If a number, use that as a seed to run a single run of the MSE. User for testing.

results_root_dir

The results root directory

results_dir

The results directory

catch_floor

The lowest value to allow catch to drop to when applying the tac rule for the catch floor

...

Arguments passed to load_data_om()

Details

Saves the output of the MSE runs to the files specified in fns, in the directories specified in results_root_dir and results_dir

Value

Nothing


pacific-hake/pacifichakemse documentation built on June 11, 2024, 4:07 a.m.