bugs.data {R2OpenBUGS} | R Documentation |
Writing input for OpenBUGS
Description
Write file for OpenBUGS to read.
Usage
bugs.data(data, dir = getwd(), digits = 5, data.file = "data.txt")
Arguments
data |
either a named list (names corresponding to variable names
in the |
dir |
the directory to write the file ‘data.txt’ to |
digits |
number of significant digits used for OpenBUGS
input, see |
data.file |
name for the file R writes the data into. |
Value
The name of data.file
is returned and as a side effect,
the data file is written
See Also
The main function to be called by the user is bugs
.
[Package R2OpenBUGS version 3.2-3.2.1 Index]