getInformation: Get information about files written by saveJAGS

Description Usage Arguments Value Author(s) Examples

Description

summary gives a summary of the informations available; getRunTime gives the run time of each file; getJAGSmodel displays the JAGS model code; getJAGSdata returns the data list used for fitting the model.

Usage

1
2
3
4
5
6
## S3 method for class 'saveJAGSfileList'
summary(object, ...)

getRunTime(fileList)
getJAGSmodel(fileList, raw=FALSE, show=TRUE)
getJAGSdata(fileList)

Arguments

fileList, object

a list of file names as returned by saveJAGS, recoverSaves or resumeJAGS.

raw

the model is stored as a character vector with one string per line of code; if raw = TRUE, this is returned, otherwise the text is converted to a single string with new lines marked with \n.

show

if TRUE, the model is displayed in the Console; the character vector is then returned invisibly.

...

not used.

Value

summary returns the base names of the parameters.

getRunTime returns a vector of difftime objects with the run times; start times are recorded to 1 min precision only which limits the precision of the result.

getJAGSmodel returns a character object with the model code, either as a character vector with one string per line of code, or as a single string with new lines marked with \n.

getJAGSdata returns a list with the data list used for fitting the model.

Author(s)

Mike Meredith.

Examples

1
# See the examples for saveJAGS function

mikemeredith/dumpJAGS documentation built on March 18, 2021, 3:36 p.m.