run.jags, results.jags and autorun.jags, and contain the MCMC chains as well as all information required to extend the simulation. These are a number of utility functions associated with these objects.## S3 method for class 'runjags':
as.mcmc(x, vars = NA, add.mutate = TRUE, ...)## S3 method for class 'runjags':
as.mcmc.list(x, vars = NA, add.mutate = TRUE, ...)
## S3 method for class 'runjags':
as.jags(x, adapt = 1000, quiet = FALSE, ...)
## S3 method for class 'jags':
as.runjags(jags.model,
monitor = stop("No monitored variables supplied"),
modules = runjags.getOption("modules"),
factories = runjags.getOption("factories"),
jags = runjags.getOption("jagspath"), mutate = NA, check = TRUE, ...)
is.runjags(x)
cleanup.jags(all.folders = FALSE, silent = FALSE)
failed.jags(show = c("model", "output"))
## S3 method for class 'runjags':
residuals(object, variable = object$residual,
show.summary = FALSE, output = "mean", ...)
## S3 method for class 'runjags':
fitted(object, variable = object$fitted,
show.summary = FALSE, output = "mean", ...)
jags.modeljags.modeljags.modelrun.jagsrunjags.options.add.summary for more details.jags.model. There are also S3 methods for print, summary and plot available for runjags class objects - see add.summary for details of the arguments available to these.
The 'failed.jags' function allows the user to interrogate the details of JAGS models that failed to compile or produce MCMC output. By default, any simulation folders for models that failed to import are kept until the R session is ended - in some circumstances it may be possible to partially recover the results using results.jags. The cleanup.jags function can be used to remove simulation folders created in the current R session, and is called when the runjags package is unloaded.add.summary for details on plot, print and summary methods for runjags class objects, extract.runjags for a method to extract peripheral information from runjags objects, runjags.options for general options available, and run.jags and autorun.jags for the functions that create objects of this class.