Learn R Programming

ss3sim (version 1.0.3)

change_o: Methods to include parameters in an SS3operating model

Description

change_o takes an SS3 .ctlfile and implements parameter value changes that are NOT time varying. change_o is specifically set up to work with an operating model .ctl file.

Usage

change_o(change_o_list, ctl_file_in = "control.ss_new",
  ctl_file_out = "om.ctl", par_name = NULL, par_int = NULL,
  verbose = FALSE)

Value

The function creates modified versions of the .ctl files. The function also returns change_o_list invisibly.

Which arguments to specifiy in case files

All function argument descriptions that start with an asterisk (*) will be passed through the case files to run_ss3sim. If one of these arguments is not specified in a case file, then a value of NULL will be passed, which may or may not be an appropriate value. Other arguments will be ignored if specified.

Specifying the <code>change_o_list</code>

Parameters initial values will change according to the values passed to change_o_list. Each parameter should have a single value specified.

Parameter names must be unique and match the full parameter name in the .ctl file.

Passing arguments to <code>change_o</code> through <code><a rd-options="" href="/link/run_ss3sim?package=ss3sim&version=1.0.3" data-mini-rdoc="ss3sim::run_ss3sim">run_ss3sim</a></code>

(1) create a case file with an arbitrary letter not used elsewhere (anything but D, E, F, or R) and (2) include the line function_type; change_o in your case file. For example, you might want to use M for natural mortality, S for selectivity, or G for growth.

See Also

Other change functions: change_data, change_em_binning, change_e, change_f_par, change_f, change_retro, change_tv