runMC | R Documentation |
Run the executable binary file 'prefix'.exe
, created by
makeAD
, to generate MCMC simulations.
runMC(prefix, nsims=2000, nthin=20, outsuff=".mc.dat",
logfile=FALSE, add=TRUE, verbose=TRUE)
prefix |
string name prefix of the ADMB project (e.g., |
nsims |
numeric scalar indicating number of MCMC simulations to perform. |
nthin |
numeric scalar indicating the sampling rate or thinning of the
|
outsuff |
string name suffix of the MCMC output data file. |
logfile |
logical: if |
add |
logical: if |
verbose |
logical: if |
This function runs 'prefix'.exe
twice, first with the arguments
-mcmc 'nsims' -mcsave 'nthin'
and second with the argument -mceval
.
By default, output goes to the file 'prefix'.mc.dat
, although a user can
specify a different output suffix.
To see this function in action, use the PBSadmb GUI with the example vonb
or
simpleMC
.
Invisibly returns the results of the shell call.
A wrapper function that can be called from a GUI exists as .win.runMC
.
Jon T. Schnute, Scientist Emeritus
Pacific Biological Station (PBS), Fisheries & Oceans Canada (DFO), Nanaimo BC
Last modified Rd: 2009-09-10
runAD
, makeAD
, cleanAD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.