bugs.inits: Writing input for MultiBUGS

Description Usage Arguments Value See Also

View source: R/bugs.inits.R

Description

Write files ‘inits1.txt’, ‘inits2.txt’, etc., in the working directory for MultiBUGS to read

Usage

1
2
bugs.inits(inits, n.chains, digits, inits.files = paste("inits",
  1:n.chains, ".txt", sep = ""))

Arguments

inits

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

n.chains

number of Markov chains

digits

number of significant digits used for MultiBUGS input, see formatC

inits.files

name for the inits files R write the inits into.

Value

Vector of names of inits.files; as a side effect, the inits files ‘inits*.txt’ are 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.