format4Bugs: Format a Data List as BUGS Data Input

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

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

Usage

1
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 and Marcos Prates marcosop@est.ufmg.br

Examples

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

rbugs documentation built on Jan. 15, 2019, 5:04 p.m.

Related to format4Bugs in rbugs...