mcunit: Unit Tests for MC Methods

Unit testing for Monte Carlo methods, particularly Markov Chain Monte Carlo (MCMC) methods, are implemented as extensions of the 'testthat' package. The MCMC methods check whether the MCMC chain has the correct invariant distribution. They do not check other properties of successful samplers such as whether the chain can reach all points, i.e. whether is recurrent. The tests require the ability to sample from the prior and to run steps of the MCMC chain. The methodology is described in Gandy and Scott (2020) <doi:10.48550/arXiv.2001.06465>.

Version: 0.3.2
Depends: R (≥ 3.1)
Imports: testthat (≥ 2.3), stats, rlang, Rdpack (≥ 0.7), methods, simctest (≥ 2.6)
Suggests: knitr, rmarkdown
Published: 2021-04-02
DOI: 10.32614/CRAN.package.mcunit
Author: Axel Gandy [aut, cre], James Scott [aut]
Maintainer: Axel Gandy <a.gandy at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: mcunit results


Reference manual: mcunit.pdf
Vignettes: Introduction to mcunit
Checking Levels of Tests or Coverage Probabilities of CIs


Package source: mcunit_0.3.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): mcunit_0.3.2.tgz, r-oldrel (arm64): mcunit_0.3.2.tgz, r-release (x86_64): mcunit_0.3.2.tgz, r-oldrel (x86_64): mcunit_0.3.2.tgz
Old sources: mcunit archive


Please use the canonical form to link to this page.