extract.runjags: Extract peripheral information from runjags objects

Description Usage Arguments Details See Also

View source: R/extract.runjags.R


Objects of class 'runjags' are produced by run.jags, results.jags and autorun.jags, and contain the MCMC chains as well as all information required to extend the simulation. This function allows specific information to be extracted from these functions. For other utility methods for the runjags class, see runjags-class.


## S3 method for class 'runjags'
extract(x, what, force.resample = FALSE, ...)



an object of class runjags.


the information contained in the runjags object to be extracted. See the details section for the available options.


option to re-draw new deviance/DIC/PED etc samples from the model (using dic.samples) rather than using any statistics that may already be available from the saved runjags object


additional options to be passed to dic.samples


The supported options for the 'what' argument are as follows:

Note that for the deviance/DIC related parameters, these will be extracted from the available information if possible, or otherwise re-sampled.

See Also

runjags-class for additional methods for runjags objects, add.summary for details on plot, print and summary methods for runjags class objects, runjags.options for general options available, and run.jags and autorun.jags for the functions that create objects of this class.

runjags documentation built on May 30, 2017, 3:11 a.m.

Search within the runjags package
Search all R packages, documentation and source code