runjags.printmethods {runjags}R Documentation

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 class 'failedjags'
print(x, linenumbers = runjags.getOption("linenumbers"), ...)

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

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

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

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

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

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

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

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

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

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

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

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

## S3 method for class '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


[Package runjags version 2.2.2-4 Index]