View source: R/McmcOptions-methods.R
saveSample | R Documentation |
Determine if we should save this sample
saveSample(iteration, mcmcOptions)
iteration |
the current iteration index |
mcmcOptions |
the |
Logical value, if we should save this sample
# 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
options <- McmcOptions(burnin=10000,
step=2,
samples=10000)
sampleSize(options)
saveSample(iteration=5,
mcmcOptions=options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.