Write file for WinBUGS to read - for internal use.
bugs.data(data, dir = getwd(), digits = 5, data.file = "data.txt")
The name of data.file
is returned and as a side effect,
the data file is written
either a named list (names corresponding to variable names
in the model.file
) of the data for the WinBUGS model,
or (which is not recommended and unsafe) a vector or list of the names of the data objects used by
the model
the directory to write the file data.txt
to
number of significant digits used for WinBUGS
input, see formatC
name for the file R writes the data into.
The main function to be called by the user is bugs
.