Description Usage Arguments Slots Examples
McmcOptions is a class for the three canonical MCMC options.
1 2 3 4 5 6 7 | McmcOptions(
burnin = 10000L,
step = 2L,
samples = 10000L,
rng_kind = NA_character_,
rng_seed = NA_integer_
)
|
burnin |
( |
step |
( |
samples |
( |
rng_kind |
( |
rng_seed |
( |
iterations(count)
number of MCMC iterations.
burnin(count)
number of burn-in iterations which are not saved.
step(count)
only every step-th iteration is saved after
the burnin. In other words, a sample from iteration
i = 1,...,iterations, is saved if and only if
(i - burnin) mod step = 0.
For example, for iterations = 6, burnin = 0 and step = 2, only
samples from iterations 2,4,6 will be saved.
rng_kind(string)
a Random Number Generator (RNG) type used by
rjags. It must be one out of the following four values:
base::Wichmann-Hill, base::Marsaglia-Multicarry,
base::Super-Duper, base::Mersenne-Twister, or NA_character_.
If it is NA_character_ (default), then the RNG kind will be chosen by
rjags.
rng_seed(number)
a Random Number Generator (RNG) seed
used by rjags for a chosen rng_kind. It must be an integer scalar or
NA_integer_, which means that the seed will be chosen by rjags.
1 2 3 | # Set up MCMC option in order to have a burn-in of 10000 iterations and
# then take every other iteration up to a collection of 10000 samples.
McmcOptions(burnin = 10000, step = 2, samples = 10000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.