Description Usage Arguments Details Note Author(s) See Also
Sets the random seed used by JAGS.
1 | jags.seed(seed)
|
seed |
A single integer value. |
This function sets the seed for the pseudo-random number generators (RNGs) used by JAGS making subsequent simulations reproducible.
Once the random seed is set by jags.seed
, the same seed will be
applied to RNG factories in subsequently loaded modules. In practical
terms this means that a call to jags.seed
may come before or
after a call to load.module
and will have the same effect.
The JAGS RNGs are independent of the RNGs used by R. A call to the
base function set.seed
has no effect on the RNGs used by
JAGS, and vice versa.
Martyn Plummer
list.factories
to find the names of available RNG
factories.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.