View source: R/run-retrospectives.R
run_retrospectives | R Documentation |
Runs retrospectives for the given model and for the vector of years given
run_retrospectives(
model = NULL,
model_path = NULL,
retro_yrs = retrospective_yrs,
num_chains = 1,
retro_mcmc = TRUE,
ss_exe = NULL,
...
)
model |
The SS model output as loaded by |
model_path |
The path of the model run |
retro_yrs |
A vector of number of years value prior to current end year in the model to run retrospectives for. Example if this is c(1, 5) then two retrospectives will be run, one with 1 year of data removed and one with 5 years of data removed |
retro_mcmc |
If |
ss_exe |
The name of executable to use or |
... |
Arguments passed to |
This will:
Create a directory with the name found in the package data variable retrospectives_path directory in the same directory that the model resides in
Create subdirectories for each retrospective year
Copy all SS3 model input files into each directory
Run a retrospective for each year found in retro_yrs
base::invisible()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.