bugsData {BRugs} | R Documentation |
Writing input for OpenBUGS
Description
Write data file for OpenBUGS.
Usage
bugsData(data, fileName = file.path(tempdir(), "data.txt"),
format="E", digits = 5)
Arguments
data |
Either a named list (names corresponding to variable names in the model file) of the data for the OpenBUGS model, or a vector or list of the names of the data objects used by the model |
fileName |
The filename, defaults to ‘data.txt’ in the temporary directory of the current R session |
format |
String to pass to
|
digits |
Number of significant digits used for OpenBUGS input,
see |
Value
Invisibly returns the fileName
.
See Also
[Package BRugs version 0.9-2.1 Index]