runTCSAM02 | R Documentation |
This function runs a TCSAM02 model once.
runTCSAM02(
os = "osx",
path = ".",
model = "tcsam02",
path2model = "",
configFile = "",
pin = FALSE,
pinFile = NULL,
mseMode = NULL,
minPhase = 1,
maxPhase = NULL,
calcOFL = FALSE,
calcTAC = FALSE,
HCR = 1,
calcDynB0 = FALSE,
hess = FALSE,
mcmc = FALSE,
mc.N = 1e+06,
mc.save = 1000,
mc.scale = 1000,
jitter = FALSE,
iSeed = NULL,
saveResults = hess,
test = FALSE,
cleanup = TRUE,
verbose = FALSE
)
os |
|
path |
|
model |
|
path2model |
|
configFile |
|
pin |
|
pinFile |
|
mseMode |
|
minPhase |
|
maxPhase |
|
calcOFL |
|
calcTAC |
|
HCR |
|
calcDynB0 |
|
hess |
|
mcmc |
|
mc.N |
|
mc.save |
|
mc.scale |
|
jitter |
|
iSeed |
|
saveResults |
|
test |
|
cleanup |
|
verbose |
|
This function creates a shell script ('./tmp.sh') in the
working directory and uses it to run a version of the TCSAM02 model.
Initial model parameters can be jittered based on the system clock time or using iSeed
to set the random number generator. The iSeed and final objective function value are
saved for each model run in a csv file (the value of out.csv).
If the path associated with configFile
is a relative one, it should
be relative to the path
variable. If saveResults=TRUE, getResLSt() is used to read in
the report file, prs file, and std files are read in and the resulting tcsam02.resLst object is
saved to 'ModelResults.RData'. If jitter=TRUE, hess=FALSE, and cleanup=TRUE, then most output files
(including the .rep files) are deleted after the model run to save disk space.
dataframe of class 'tcam02.par', with 2 columns (name, value) with jitter iSeed (if jittered) and par file info, or NULL if par file does not exist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.