genDataFile {rbugs} | R Documentation |
Generating the data file which can be used in the script file for runing BUGS batch-mode.
genDataFile(dataList, dataFile)
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. |
None.
Jun Yan jyan@stat.uiowa.edu
genInitsFile
, genBugsScript
,
format4Bugs
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")