getBugsOutput: Collect the MCMC samples from BUGS

Description Usage Arguments Details Value Author(s)

View source: R/rbugs.R

Description

Collect the MCMC samples from BUGS.

Usage

1
getBugsOutput(n.chains, workingDir, OpenBugs = TRUE)

Arguments

n.chains

The number of chains BUGS had run.

workingDir

A character string specifying the name of the directory where the output files are saved.

OpenBugs

If TRUE, OpenBugs is used.

Details

This function assumes that under workingDir, there is a coda index file ‘codaIndex.txt’, and the coda output for n.chains chains are named as coda1.txt, coda2.txt, ...

Value

A list of matrix whose columns and rows contain the monitored parameters and the MCMC iterations, respectively.

Author(s)

Jun Yan jyan@stat.uconn.edu and Marcos Prates marcosop@est.ufmg.br


rbugs documentation built on Jan. 15, 2019, 5:04 p.m.

Related to getBugsOutput in rbugs...