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

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_0.3.0.zip, r-release: whatifbandit_0.3.0.zip, r-oldrel: whatifbandit_0.3.0.zip
macOS binaries: r-release (arm64): whatifbandit_0.3.0.tgz, r-oldrel (arm64): whatifbandit_0.3.0.tgz, r-release (x86_64): whatifbandit_0.3.0.tgz, r-oldrel (x86_64): whatifbandit_0.3.0.tgz
Old sources: whatifbandit archive

Linking:

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