View source: R/run_investigatemodel.R
run_investigatemodel | R Documentation |
Run all model investigations for a base model
run_investigatemodel(
basemodelname,
pars = system.file("extdata", "diagpars.csv", package = "lingcod"),
run = c("jitter", "profile", "retro"),
njitter = 100,
extras = "-nohess -cbs 1500000000"
)
basemodelname |
The name of the base model of interest in |
pars |
A file path the csv with the parameter specifications. The file has a column for area, with values matching what you use in your model name for area, e.g., 2009.n.001.001_test, would be a northern model. and the remaining columns are parameter inputs for nwfscDiag::get_settings_profile, and the column names must match the formals exactly because they are used with do.call. You can pass any file you want, but the default is to use the one saved internal to this package. |
run |
A vector of options you want to run, where the default is to run them all. |
njitter |
An integer number of jitter runs you want to complete. |
extras |
A single character entry that will be passed to system
when running SS. Typically this is |
notes:
The whole process will fail if a single model doesn't converge in the retro.
The process will in retro if no forecasts.
Error from SS_doretro I think has file names pasted together without spaces.
Error in r4ss::SS_doRetro(masterdir = retro_dir, overwrite = model_settings$overwrite, :
error copying file(s): ss.exeforecast.ssling_control.ssling_data.ss
Chantel R. Wetzel from the example in nwfscDiags.
## Not run:
# Just need to define xxx
setwd(dirname(system.file(package = "lingcod")))
run_investigatemodel(basemodelname = basemodelname)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.