powered by
Generating the data file which can be used in the script file for runing BUGS batch-mode.
genDataFile(dataList, dataFile)
A list of data that are needed by BUGS. Its elements must be numeric vector or matrices.
A character string naming the file to print to. It must end with .txt to be recoganizable by BUGS.
None.
genInitsFile, genBugsScript, format4Bugs
genInitsFile
genBugsScript
format4Bugs
# NOT RUN { 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") # }
Run the code above in your browser using DataLab