Function that generates the simulated data for a set of simulation with Gmacs.

Gen_GmacsSim(
  path = NULL,
  Stock = NULL,
  RandomRec = NULL,
  Ndev_Rec = NULL,
  SigmaR = NULL,
  RandSim = NULL,
  UseParam = NULL,
  No_Est = NULL,
  Nsim = NULL,
  seed_val = NULL,
  verbose = NULL
)

Arguments

path

(character string)- file path representing root i.e., the folder where the gmacsbase.tpl file is stored.

Stock

(character string)- Name of the stock of interest. This will be used to set the working directories: this is the name of the folder in the build directory where the basic gmacs input files are stored.

RandomRec

(logical)- if FALSE : add deviations to the original ones, if TRUE generate new deviations.

Ndev_Rec

(integer)- Number of year to which apply a deviation in recruitment.

SigmaR

(numeric)- Standard deviation used in the stats::rnorm() function.

RandSim

(logical)- If true, random deviations are generated.

UseParam

(logical)- Do the simulations use a .PIN file to import parameters?

No_Est

(logical)- Set the maximum function call to 1? i.e., run estimation?

Nsim

(integer)- the number of simulation to run.

seed_val

(integer) - a random number generation (single value; see base::set.seed()).

verbose

(logical)- flag to print processing information

Value

Nothing