bugsInits {BRugs} | R Documentation

## Writing input for OpenBUGS

### Description

Write files containing inits.

### Usage

    bugsInits(inits, numChains = 1, fileName, 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 current working directory.
`digits` | number of significant digits used for OpenBUGS input, see `formatC`

### Value

Invisibly returns the `fileName`(s).

### See Also

`BRugs`

[Package BRugs version 0.3-2 Index]