bugs.data: Writing input for MultiBUGS

Description Usage Arguments Value See Also

View source: R/bugs.data.R

Description

Write file for MultiBUGS to read.

Usage

1
bugs.data(data, dir = getwd(), digits = 5, data.file = "data.txt")

Arguments

data

either a named list (names corresponding to variable names in the model.file) of the data for the MultiBUGS model, or a vector or list of the names of the data objects used by the model

dir

the directory to write the file ‘data.txt’ to

digits

number of significant digits used for MultiBUGS input, see formatC

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.


MultiBUGS/R2MultiBUGS documentation built on April 18, 2019, 11:57 p.m.