Learn R Programming

runjags (version 2.2.2-4)

runjags.printmethods: Print methods for runjags helper classes

Description

Print methods for a number of classes that are associated with runjags objects, such as model, data and initial values files etc.

Usage

# S3 method for failedjags
print(x, linenumbers = runjags.getOption("linenumbers"), ...)

# S3 method for runjagsmodel print(x, linenumbers = runjags.getOption("linenumbers"), ...)

# S3 method for runjagsdata print(x, linenumbers = runjags.getOption("linenumbers"), ...)

# S3 method for runjagsinits print(x, linenumbers = runjags.getOption("linenumbers"), ...)

# S3 method for runjagsoutput print(x, linenumbers = runjags.getOption("linenumbers"), ...)

# S3 method for rjagsoutput print(x, ...)

# S3 method for crosscorrstats print(x, vars = NA, digits = 5, ...)

# S3 method for mcsestats print(x, vars = NA, digits = 5, ...)

# S3 method for gelmanwithtarget print(x, vars = NA, digits = 3, ...)

# S3 method for dicstats print(x, digits = 3, ...)

# S3 method for runjagsbginfo print(x, ...)

# S3 method for runjagsstudy print(x, ...)

# S3 method for runjagsstudy summary(object, ...)

# S3 method for runjagsstudy plot(x, ...)

Arguments

x

the object to be printed or converted.

linenumbers

option to display line numbers alongside model, data and initial values output (this may be helpful for debugging). Defualt uses the option set in runjags.options.

...

other arguments which are passed to the default print method for some methods but ignored (with/without a warning) for others

vars

an optional character vector of variable names. If supplied, only variable names in the object supplied with a partial match to anything in 'vars' will be used. Note that regular expressions are not allowed, but the caret (^) token can be used to specify the match at the start of a variable name, and a quoted vars will be matched exactly. Default NA meaning all variables available are returned.

digits

the number of digits to display for printed numerical output.

object

the object to be summarised.

References

Matthew J. Denwood (2016). runjags: An R Package Providing Interface Utilities, Model Templates, Parallel Computing Methods and Additional Distributions for MCMC Models in JAGS. Journal of Statistical Software, 71(9), 1-25. doi:10.18637/jss.v071.i09

See Also

runjags-class for print and plot methods associated with the main runjags class