With various tests, calls the admb
script to compile from a TPL file
to an executable, or runs the resulting executable
compile_admb(fn,safe=FALSE,re=FALSE,
verbose=FALSE,
admb_errors=c("stop","warn","ignore")) run_admb(fn,verbose=FALSE,mcmc=FALSE,
mcmc.opts=mcmc.control(),profile=FALSE,
extra.args="",admb_errors=c("stop","warn","ignore"))
read_admb(fn,verbose=FALSE,profile=FALSE,
mcmc=FALSE,mcmc.opts=NULL,admbOut=NULL,checkterm=TRUE)
compile_admb
returns nothing (it has the side
effect of creating an executable)
run_admb
invisibly returns the
output produced by the ADMB run; it also produces output files on disk as a
side effect
read_admb
returns an object of class admb
,
containing as much information as possible gleaned from the output files
(parameter estimates, standard errors, variance-covariance matrix, profiles,
MCMC output)
(character) name of TPL file, without extension
(logical) Compile in safe mode?
(logical) Compile in random effects (ADMB-RE) mode?
(logical) Verbose output?
(character) how to handle compilation/linking errors?
(logical) Run likelihood profiles?
(character) extra arguments for ADMB run
(logical) run post-hoc MCMC?
options for MCMC run (see mcmc.control
)
(character) ADMB run output for inclusion in admb
object (for internal use)
(logical) compute termination criteria (ratio of min/max eigenvalue) and include it in the saved object?
Ben Bolker