Description Usage Arguments Value Author(s) See Also
jagsModel is used to create an object representing a
Bayesian graphical model, specified with a BUGS-language description
of the prior distribution, and a set of data.
This function uses jags.model but keeps track
of data cloning information supplied via the data argument.
The model argument can also accept functions or 'custommodel' objects.
1 2 |
file |
the name of the file containing a
description of the model in the
JAGS dialect of the BUGS language.
Alternatively, |
data |
a list or environment containing the data. Any numeric
objects in |
inits |
optional specification of initial values in the form of a list or a function. If omitted, initial values will be generated automatically. It is an error to supply an initial value for an observed node. |
n.chains |
the number of chains for the model |
n.adapt |
the number of iterations for adaptation. See
|
quiet |
if |
parJagsModel returns an object inheriting from class jags
which can be used to generate dependent samples from the posterior
distribution of the parameters.
An object of class jags is a list of functions that share a
common environment, see jags.model for details.
An n.clones attribute is attached to the object when applicable.
Peter Solymos, solymos@ualberta.ca
Underlying functions: jags.model,
update.jags
See example on help page of codaSamples.
Parallel version: parJagsModel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.