The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

whatifbandit: Analyzing Randomized Experiments Using Multi-Arm Bandits

Simulates response-adaptive experimental trials using Multi-Arm Bandits. Adaptive robust estimators defined in Hadad et al. (2021) <doi:10.1073/pnas.2014602118> and Offer-Westort et al. (2021) <doi:10.1111/ajps.12597> are used to robustly estimate conditional expectations and treatment effects. Provides significant simulation customization options for imperfect information, non-stationary bandits, and increased exploration strategies for assignments.

Version: 1.0.2
Depends: R (≥ 4.1.0)
Imports: bandit, clubSandwich, data.table (≥ 1.18.0), dplyr, estimatr, furrr, lubridate, methods, purrr, randomizr, rlang, tibble, tidyr
Suggests: future, ggplot2, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-07-23
DOI: 10.32614/CRAN.package.whatifbandit
Author: Noah Ochital ORCID iD [aut, cre, cph], Ryan T. Moore ORCID iD [ctb, cph]
Maintainer: Noah Ochital <no9857a at american.edu>
BugReports: https://github.com/Noch05/whatifbandit/issues
License: GPL (≥ 3)
URL: https://github.com/Noch05/whatifbandit
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: whatifbandit results [issues need fixing before 2026-08-21]

Documentation:

Reference manual: whatifbandit.html , whatifbandit.pdf
Vignettes: Introduction to '{whatifbandit}' (source)

Downloads:

Package source: whatifbandit_1.0.2.tar.gz
Windows binaries: r-devel: whatifbandit_1.0.2.zip, r-release: whatifbandit_1.0.2.zip, r-oldrel: whatifbandit_1.0.2.zip
macOS binaries: r-release (arm64): whatifbandit_1.0.2.tgz, r-oldrel (arm64): whatifbandit_1.0.2.tgz, r-release (x86_64): whatifbandit_1.0.2.tgz, r-oldrel (x86_64): whatifbandit_1.0.2.tgz
Old sources: whatifbandit archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=whatifbandit to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.