Objects of class 'runjags.bginfo' represents a JAGS model being run using a background method and can be passed to the results.jags function to retrieve (a copy of this object will also have been saved to 'jagsinfo.Rsave' in the working directory of the background JAGS call in case the returned object is not saved by the user).
Objects of class 'runjags.study' are produced by the run.jags.study function.
These functions provide print and plot methods, and conversion facilities to/from MCMC objects and objects of class 'jags' for compatibility with the rjags package.
The 'failedjags' environment is used to store JAGS model/data/initial value files from failed simulations for inspection by the user.
## S3 method for class 'runjags':
print(x, vars=NA, digits = 5, ...)
## S3 method for class 'runjags':
plot(x,vars=NA, layout=NA,
newwindows=runjags.getOption("newwindows"), file="", type="all", ...)
## S3 method for class 'runjags.model':
print(x, linenumbers=runjags.getOption("linenumbers"), ...)
## S3 method for class 'runjags.data':
print(x, linenumbers=runjags.getOption("linenumbers"), ...)
## S3 method for class 'runjags.inits':
print(x, linenumbers=runjags.getOption("linenumbers"), ...)
## S3 method for class 'runjags.output':
print(x, linenumbers=runjags.getOption("linenumbers"), ...)
## S3 method for class 'runjags.study':
print(x,...)
## S3 method for class 'runjags.bginfo':
print(x, ...)
## S3 method for class 'runjags':
as.mcmc(x)
## S3 method for class 'runjags':
as.mcmc.list(x, vars=NA, ...) ## S3 method for class 'runjags':
as.jags(x, ...)
## S3 method for class 'jags':
as.runjags(x, monitor, modules=runjags.getOption('modules'),
factories=runjags.getOption('factories'), check=TRUE,
jags = runjags.getOption('jagspath'), ...)
run.jags
or autorun.jags
functions), or for
the as.runjags method an object of class 'jags' (as returnThe plot method produces trace and density plots (note that these are pre-plotted and stored inside the runjags object, so the usual options to lattice or plot functions are not available).
The as.mcmc method combines the chains (with a warning) and returns an
mcmc object, and the as.mcmc.list method extracts the mcmc.list from the
runjags object (or possibly a sub-selection of variables given by vars).
See also combine.mcmc
which can be used directly on
runjags objects.
The print methods for runjags model, data and initial value strings simply provide the option for printing line numbers which may be useful for debugging. The print methods for runjags.study and runjags.bginfo objects provide a basic overview of the objects.
The as.jags method allows runjags objects to be converted to rjags style compiled JAGS models - additional arguments adapt and quiet are passed directly to jags.model, other arguments are ignored. If the runjags object already contains a compiled JAGS model, this is returned directly without re-compilation.
runjags.options
,