Randomization inference procedures for simple and complex randomized designs, including multi-armed trials, as described in Gerber and Green (2012, ISBN: 978-0393979954). Users formally describe their randomization procedure and test statistic. The randomization distribution of the test statistic under some null hypothesis is efficiently simulated.
| Version: | 0.4.1 | 
| Depends: | randomizr (≥ 0.16.0), estimatr | 
| Imports: | generics, ggplot2, pbapply | 
| Suggests: | testthat, knitr, rmarkdown | 
| Published: | 2025-10-14 | 
| DOI: | 10.32614/CRAN.package.ri2 | 
| Author: | Alexander Coppock [aut, cre] | 
| Maintainer: | Alexander Coppock <acoppock at gmail.com> | 
| License: | MIT + file LICENSE | 
| NeedsCompilation: | no | 
| Materials: | NEWS | 
| CRAN checks: | ri2 results | 
| Reference manual: | ri2.html , ri2.pdf | 
| Vignettes: | Randomization Inference with ri2 (source, R code) | 
| Package source: | ri2_0.4.1.tar.gz | 
| Windows binaries: | r-devel: ri2_0.4.1.zip, r-release: ri2_0.4.1.zip, r-oldrel: ri2_0.4.1.zip | 
| macOS binaries: | r-release (arm64): ri2_0.4.1.tgz, r-oldrel (arm64): ri2_0.4.1.tgz, r-release (x86_64): ri2_0.4.1.tgz, r-oldrel (x86_64): ri2_0.4.1.tgz | 
| Old sources: | ri2 archive | 
Please use the canonical form https://CRAN.R-project.org/package=ri2 to link to this page.