Skip to content

whatifbandit

1.0.3Package record

Analyzing Randomized Experiments Using Multi-Arm Bandits

0packages depend
2.4Kdownloads / year
89.3%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.0.3

Bug Fixes

  • Fixing CRAN identified bug with data.frame, data.table equality on NoLD R build.
  • For mab_from_rct() imputations are no computed using stats::rbinom() with appropriate probabilities instead of randomizr::block_ra(). This new approach increases the variance of the imputations, but was a planned change to support custom imputation functions in the future.
  • Ensuring probabilities of assignment are split evenly under UCB1 ties (bandit.R Line 412-417), instead of relying on a later implicit normalization. This ensures the intended effect with control_augment and random_assign_prop
  • In simulate_mab(), furrr::furrr_options() is now called with the appropraite furrr_args object instead of ..., which also contains arguments for the user specific time_model.

Other

Show all changes in 1.0.3Hide the rest of the changes in 1.0.3
  • Introductory vignette updated for 1.x.x release, along with 2 new vignettes planned.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 12.2 min · r-devel-linux-x86_64-debian-clang
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • WARNING12 OK, 1 WARNING2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.3
READMEYes · 598 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.0.3Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
46 (42 internal)includes a package overview page
Examples that run
100%3 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
15%

Downloads

2.4K
CRAN downloads in the past year
Rank #20,965 · ~7/day · ~200/mo
Daily download trend is not available in this view yet.
20930 days
63990 days
2.4K1 year
Compare downloads with other packages →
Also on86 r2u7 autocran

Repository

2Stars
1Forks
0Open issues
0Open PRs
5Releases
679Commits
2Commit identities
License file reads as GPL-3.0 · 679 commits · Last activity 2026-08-24 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-11-03 · 12026-07-17 · 2
PracticesBeta

7 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/noch05/whatifbandit on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Coverage (1)
Coverage reporting
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
Show all practicesHide 1 practice
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

Installing whatifbandit adds 41 packages (23 with compiled code, 34 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, Rcpp 1.8 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.3.0 (2025), Copyright holder
Contributor, Copyright holder
Releases (3)

Pick two releases to compare their code metrics.

  • unarchivedReturned to CRAN
    2026-08-24
  • 1.0.3Latest
    record
    2026-08-24 · current release · diff ↗
  • archivedRemoved from CRAN
    2026-08-22
    issues were not corrected in time
  • 1.0.2
    record
    2026-07-23 · diff ↗ ·
    removed 2 exports
    multiple_mab_simulation, single_mab_simulation
    added 3 exports
    joint_test, mab_from_rct, simulate_mab
  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.0
    record
    2025-11-03
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-11-03
Total releases
3 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Bundled data
100 KB / 1 file
Download size
1.1 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("whatifbandit")
Ochital, N., & Moore, R. T. (2026). whatifbandit: Analyzing Randomized Experiments Using Multi-Arm Bandits (Version 1.0.3) [Computer software]. https://doi.org/10.32614/CRAN.package.whatifbandit

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for whatifbandit version 1.0.3 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy