runJJM: Run a JJM model

View source: R/runJJM.R

runJJMR Documentation

Run a JJM model

Description

Function to run one or several JJM models

Usage

runJJM(
  models,
  path = NULL,
  output = "results",
  input = NULL,
  exec = NULL,
  version = NULL,
  useGuess = FALSE,
  guess = NULL,
  piner = NULL,
  iprint = 100,
  wait = TRUE,
  parallel = FALSE,
  temp = NULL,
  ...
)

Arguments

models

String with the name of the models to be run.

path

Directory where the 'admb' folder is located.

output

Folder to save the outputs, 'arc' by default.

input

Input

exec

Path to the jjm executable

version

version of JJM, default to "2015MS" (2015 SC multi-stock).

useGuess

boolean, to use an initial guess for the parameters?

guess

File with the initial guess for the parameters. If NULL, will use model.par in the output folder.

piner

A number to start the profiling on the meanlogrec

iprint

iprint parameter for the JJM model, 100 by default.

wait

boolean, wait for the model to finish? Forced to be TRUE.

parallel

Should model run in parallel? A cluster need to be setup to be used with foreach.

temp

character, path for a temporal directory to run models, if NULL a temporal folder is automaticaly created.

...

Arguments passed from system function.

Examples

## Not run: 
model = runJJM(models = "mod2.4")

## End(Not run)

SPRFMO/jjmr documentation built on March 27, 2024, 6:16 a.m.