Learn R Programming

DLMtool (version 5.1.3)

SS2DLM: Reads MLE estimates from Stock Synthesis file structure into an operating model using package r4ss

Description

A function that uses the file location of a fitted SS3 model including input files to population the various slots of an operating model with MLE parameter estimates

Usage

SS2DLM(SSdir, nsim = 48, proyears = 50, length_timestep = NA,
  Name = NULL, Source = "No source provided",
  Author = "No author provided", printstats = F, verbose = T)

Arguments

SSdir

A folder with Stock Synthesis input and output files in it

nsim

The number of simulations to take for parameters with uncertainty (for OM@cpars custom parameters)

proyears

The number of projection years for MSE

length_timestep

The duration (in years) of each timestep in the model (if an quarterly model is used this is 0.25)

Name

The name of the operating model

Source

Reference to assessment documentation e.g. a url

Author

Who did the assessment

printstats

Should the r4ss function SS_output return info on data that was read in?

verbose

Should the r4ss function SS_ouput return detailed messages?