Compute the number of samples for a given MCMC options triple

Object-Oriented Implementation of CRM Designs

244

0

Determine if we should save this sample

1 | ```
saveSample(iteration, mcmcOptions)
``` |

`iteration` |
the current iteration index |

`mcmcOptions` |
the |

Logical value, if we should save this sample

1 2 3 4 5 6 7 8 9 10 | ```
# 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)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.