Description Usage Arguments Details Value
This function runs a TCSAM2015 model once.
1 2 3 4 5 |
os |
- 'win' or 'mac' or 'osx' |
path |
- path for model output |
model |
- TCSAM2013 model executable name |
path2model |
- path to model executable |
configFile |
- filename (including path) to model configuration file |
pin |
- T/F to use a pin file |
minPhase |
- phase to start minimization (or NULL) |
maxPhase |
- final minimization phase (or NULL) |
hess |
- T/F to compute hessian (and .std file) |
mcmc |
- T/F to run mcmc |
mc.N |
- number of mcmc iterations to do |
mc.save |
- number of iterations to skip when saving mcmc calculations |
mc.scale |
- number of iterations to adjust scale for mcmc calculations |
jitter |
- T/F to jitter parameters |
jit.seed |
- seed for random number generator (or NULL) |
calcOFL |
- flag (T/F) to perform OFL calculations |
plotResults |
- T/F to plot results using |
cleanup |
- flag (T/F) to clean up unnecessary files |
This function creates a shell script ('./tmp.sh') in the
working directory and uses it to run a version of the TCSAM2015 model.
Initial model parameters can be jittered based on the system clock time as a jit.seed
to the random number generator. The jit.seed 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 showPlot=TRUE, the report file, prs file,
and std files are read in and the associated objects are saved to 'ModelResults.RData'
as repObj, prsObj, and stdObj, respectively.
- dataframe of class 'tcam2015.par', with 2 columns (name, value) with jitter jit.seed (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.