format4Bugs {rbugs}R Documentation

Format a Data List as BUGS Data Input

Description

Transform a data list into a format which can be read in as data by BUGS.

Usage

format4Bugs(dataList, digits = 5)

Arguments

dataList A list of data to be formatted.
digits The desired number of significant digits.

Value

A charactor vector of data readable by BUGS.

Author(s)

Jun Yan jyan@stat.uiowa.edu

Examples

dat <- list(a = runif(1), b=rnorm(2), c=matrix(rexp(4), 2, 2))
format4Bugs(dat)

[Package rbugs version 0.3-6 Index]