genDataFile: Generating the Data File for BUGS

Description Usage Arguments Value Author(s) See Also Examples

View source: R/rbugs.R

Description

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

Usage

1
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.uconn.edu and Marcos Prates marcosop@est.ufmg.br

See Also

genInitsFile, genBugsScript, format4Bugs

Examples

1
2
3
4
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")

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

Related to genDataFile in rbugs...