JAGSsetup {bayesmix}R Documentation

Creation of necessary input files for jags

Description

Given the model and the control specifications the input files (.bug, -data.R, -inits.R, .cmd) for jags are created with prefix as their names.

Usage

JAGSsetup(model, y, prefix, control, ...)

## Default S3 method:
JAGSsetup(model, y, prefix, control, ...)
## S3 method for class 'BMMsetup':
JAGSsetup(model, y, prefix, control, ...)

Arguments

model JAGSmodel object or output from BMMmodel.
y a numeric vector.
prefix string: prefix for .bug, -data.R, -inits.R and .cmd-file.
control named list or JAGScontrol object.
... additional parameters handed over to BMMmodel.

Details

control needs to have a component text which is written into the .cmd file after inserting the prefix where necessary.

Value

After creating the files prefix"-data.R", prefix"-inits.R", prefix".bug" and prefix".cmd" it returns a list with the following components

control input argument control with prefix inserted in the componenttext.
model JAGSmodel object

Author(s)

Bettina Gruen

See Also

BMMmodel, JAGScontrol


[Package bayesmix version 0.6-0 Index]