JAGSsetup {bayesmix} | R Documentation |
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.
JAGSsetup(model, y, prefix, control, ...) ## Default S3 method: JAGSsetup(model, y, prefix, control, ...) ## S3 method for class 'BMMsetup': JAGSsetup(model, y, prefix, control, ...)
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 . |
control
needs to have a component text
which is written
into the .cmd file after inserting the prefix
where necessary.
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 |
Bettina Gruen