JAGScontrol {bayesmix}R Documentation

Creates text for .cmd file

Description

Creates the text for the file where all the commands for jags are included.

Usage

JAGScontrol(variables, draw = 1000, burnIn = 0, seed, rng =
            c("base::Wichmann-Hill", "base::Marsaglia-Multicarry",
            "base::Super-Duper", "base::Mersenne-Twister"))

Arguments

variables names of variables which shall be monitored.
draw number of monitored draws.
burnIn number of discarded burn-in draws.
seed integer setting the seed for the RNG.
rng specification of random number generator.

Details

This function creates the text for the .cmd-file. It includes information on the number of burn-in draws and monitored draws. Furthermore, it states which variables shall be monitored and it possibly specifies a seed. The information on the prefix of the files containing model, data and initial value is missing. By inserting the prefix between the elements of the vector containing the text a .cmd-file can be created which can be used for calling jags in batch mode.

Value

An object of class JAGScontrol is returned which is a list containing the following components:

text a vector of strings which contains all commands for running jags. For creating a .cmd-file the prefix of the files has to be inserted.
variables a vector containing the names of the monitored variables.

Author(s)

Bettina Gruen

See Also

JAGSrun

Examples

control <- JAGScontrol(variables = "mu")
control

[Package bayesmix version 0.6-0 Index]