combineSaves: Combine MCMC samples from files

Description Usage Arguments Value Author(s)

View source: R/combineSaves.R

Description

Takes a list of files which contain output from saveJAGS, loads them into R and combines into a single mcmcOutput or mcmc.list object.

combineSaves is now superseded by as.mcmc.list and will be removed in a future version.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'saveJAGSfileList'
mcmcOutput(object, header,
    params=NULL, thin=1, burnFiles=0, cores=1, ...)
## S3 method for class 'saveJAGSfileList'
as.mcmc.list(x,
    params=NULL, thin=1, burnFiles=0, cores=1, ...)

combineSaves(fileList, params=NULL, thin=1, burnFiles=0, cores=1)

Arguments

object, x, fileList

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

header

text to use as the header by print and summary methods.

params

a character vector giving the names of parameters to be retained; if NULL, all will be retained.

thin

the amount of additional thinning to be applied to the chains when read in.

burnFiles

the number of initial files to discard as burn-in.

cores

the maximum number of cores (threads) to use; the number used is the minimum of (a) cores, (b) the number of chains to process, (c) the number of cores available on the machine. Parallel processing uses more memory and may fail if files are very large.

...

other arguments to pass to the method.

Value

An object of class mcmcOutput or mcmc.list.

Author(s)

Mike Meredith.


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