Learn R Programming

r4ss (version 1.17)

SS_profile: Run a likelihood profile in Stock Synthesis.

Description

Iteratively changes the control file using SS_changepars.

Usage

SS_profile(dir = "C:/myfiles/mymodels/myrun/", masterctlfile =
  "control.ss_new", newctlfile = "control_modified.ss",
  linenum = NULL, string = NULL, profilevec = NULL,
  usepar = TRUE, dircopy = TRUE, exe.delete = FALSE,
  command = "SS3 -nox", model = "ss3", systemcmd =
  FALSE, saveoutput = TRUE, overwrite = FALSE, verbose =
  TRUE)

Arguments

dir
Directory where input files and executable are located.
masterctlfile
Source control file. Default = "control.ss_new"
newctlfile
Destination for new control files (must match entry in starter file). Default = "control_modified.ss".
linenum
Optional line number of parameter to be changed. Default = NULL.
string
Optional string partially matching name of parameter to be changed. Default = NULL.
usepar
Use PAR file from previous profile step for starting values? NOT IMPLEMENTED YET.
dircopy
Copy directories for each run? NOT IMPLEMENTED YET.
exe.delete
Delete exe files in each directory? NOT IMPLEMENTED YET.
profilevec
Vector of values to profile over. Default = NULL.
command
Call to executable. Default = "SS3 -nox".
model
Name of executable. Default = "ss3".
systemcmd
Should R call SS using "system" function intead of "shell". This may be required when running R in Emacs. Default = FALSE.
saveoutput
Copy output .SSO files to unique names. Default = TRUE.
overwrite
Overwrite any existing .SSO files. Default = FALSE.
verbose
Controls amount of info output to command line. Default = TRUE.

See Also

SS_changepars, SS_parlines