bugs.script: Writes script for running WinBUGS

Description Usage Arguments Value See Also

Description

Write file ‘script.txt’ for WinBUGS to read - intended for internal use

Usage

1
2
3
4
5
bugs.script(parameters.to.save, n.chains, n.iter, n.burnin, n.thin,
    model.file, debug=FALSE, is.inits, bin, DIC=FALSE,
    useWINE=.Platform$OS.type != "windows", newWINE=TRUE, WINEPATH=NULL, 
    bugs.seed=NULL, summary.only=FALSE, save.history=TRUE, 
    bugs.data.file, bugs.inits.files, over.relax = FALSE)

Arguments

parameters.to.save

parameters that should be monitored

n.chains

number of Markov chains

n.iter

number of total iterations (including burn in)

n.burnin

length of burn in

n.thin

size of thinning parameter

model.file

file containing the model written in WinBUGS code

debug

if FALSE, WinBUGS is closed automatically, otherwise WinBUGS remains open for further investigation

is.inits

logical; whether initial values are given by the user (TRUE) or have to be generated by WinBUGS

bin

number of iterations between saving of results

DIC

logical; if TRUE, compute deviance, pD, and DIC automatically in WinBUGS

useWINE

as in bugs meta function

newWINE

as in bugs meta function

WINEPATH

as in bugs meta function

bugs.seed

random seed for WinBUGS (default is no seed)

summary.only

If TRUE, only a parameter summary for very quick analyses is given, temporary created files are not removed in that case.

save.history

If TRUE (the default), trace plots are generated at the end.

bugs.data.file

character name of the data file

bugs.inits.files

character vector of names of the inits files

over.relax

If TRUE, over-relaxed form of MCMC is used if available from WinBUGS.

Value

Nothing, but as a side effect, the script file ‘script.txt’ is written

See Also

The main function to be called by the user is bugs.


R2WinBUGS documentation built on May 2, 2019, 1:45 p.m.