SS_recdevs {r4ss}R Documentation

Insert a vector of recruitment deviations into the control file.

Description

A function to insert a vector of recruitment deviations into the control file for simulation studies. This can also be achieved by using the .par file, but Ian Taylor prefers this approach for no good reason.

Usage

SS_recdevs(fyr = NA, lyr = NA, ctl = NULL, recdevs = NULL,
rescale = T, dir = "working_directory",
ctlfile = "control.ss_new", newctlfile = "control_modified.ss",
verbose = T, writectl = T, returnctl = F, newmaxbias = NULL)

Arguments

fyr First year of the recdev vector. Default=NA.
lyr Last year of the recdev vector. Default=NA.
ctl Either NULL to read anew or an already read control file. Default=NULL.
recdevs Either NULL to generate anew or an already generated vector of recdevs. Default=NULL.
rescale Should the recdevs be rescaled to have std. deviation = sigmaR? Default=T.
dir Directory where files are located. Default is to use the working directory in use by R. Default="working_directory".
ctlfile Name of control file to modify. Default="control.ss_new".
newctlfile Name of new file to output modified control file. Default="control_modified.ss".
verbose Verbose output to R command line? Default=T.
writectl Write new file? Default=T.
returnctl Return contents ctl file as an object in the R workspace. Default=F.
newmaxbias Replace the maximum bias adjustment fraction with any non-NULL value. Default=NULL.

Author(s)

Ian Taylor


[Package r4ss version 1.04 Index]