bugsInits {BRugs}R Documentation

Writing input for OpenBUGS

Description

Write files containing initial values.

Usage

bugsInits(inits, numChains = 1, fileName, format="E", digits = 5)

Arguments

inits

a list with n.chains elements; each element of the list is itself a list of starting values for the OpenBUGS model, or a function creating (possibly random) initial values

numChains

number of Markov chains

fileName

the filename(s), one for each chain. Defaults to ‘inits1.txt’, ..., ‘initsN.txt’ in the temporary directory of the current R session.

format

String to pass to formatC which controls formatting of numbers. The default "E" formats all numbers in scientific notation. The alternative "fg" uses a standard format.

digits

number of significant digits used for OpenBUGS input, see formatC

Value

Invisibly returns the fileName(s).

See Also

BRugs


[Package BRugs version 0.9-2.1 Index]