genDataFile {rbugs}R Documentation

Generating the Data File for BUGS

Description

Generating the data file which can be used in the script file for runing BUGS batch-mode.

Usage

genDataFile(dataList, dataFile)

Arguments

dataList A list of data that are needed by BUGS. Its elements must be numeric vector or matrices.
dataFile A character string naming the file to print to. It must end with .txt to be recoganizable by BUGS.

Value

None.

Author(s)

Jun Yan jyan@stat.uiowa.edu

See Also

genInitsFile, genBugsScript, format4Bugs

Examples

dat <- list(a = runif(1), b=rnorm(2), c=matrix(rexp(4), 2, 2))
genDataFile(dat, "foo.txt")
file.show("foo.txt")
unlink("foo.txt")

[Package rbugs version 0.3-6 Index]