Crandore Hub

whatifbandit

Analyzing Randomized Experiments as Multi-Arm Bandits

Simulates the results of completed randomized controlled trials, as if they had been conducted as adaptive Multi-Arm Bandit (MAB) trials instead. Augmented inverse probability weighted estimation (AIPW), outlined by Hadad et al. (2021) <doi:10.1073/pnas.2014602118>, is used to robustly estimate the probability of success for each treatment arm under the adaptive design. Provides customization options to simulate perfect/imperfect information, stationary/non-stationary bandits, blocked treatment assignments, along with control augmentation, and other hybrid strategies for assigning treatment arms. The methods used in simulation were inspired by Offer-Westort et al. (2021) <doi:10.1111/ajps.12597>.

Versions across snapshots

VersionRepositoryFileSize
0.3.0 rolling linux/jammy R-4.5 whatifbandit_0.3.0.tar.gz 478.9 KiB
0.3.0 rolling linux/noble R-4.5 whatifbandit_0.3.0.tar.gz 478.8 KiB
0.3.0 rolling source/ R- whatifbandit_0.3.0.tar.gz 702.5 KiB
0.3.0 latest linux/jammy R-4.5 whatifbandit_0.3.0.tar.gz 478.9 KiB
0.3.0 latest linux/noble R-4.5 whatifbandit_0.3.0.tar.gz 478.8 KiB
0.3.0 latest source/ R- whatifbandit_0.3.0.tar.gz 702.5 KiB
0.3.0 2026-04-26 source/ R- whatifbandit_0.3.0.tar.gz 702.5 KiB
0.3.0 2026-04-23 source/ R- whatifbandit_0.3.0.tar.gz 702.5 KiB
0.3.0 2026-04-09 windows/windows R-4.5 whatifbandit_0.3.0.zip 484.2 KiB

Dependencies (latest)

Imports

Suggests