Multi-Armed Qini
Overview
Fits generalized Qini curves for evaluating treatment allocation policies with one or more mutually exclusive treatment arms. Given estimated conditional treatment effects and treatment costs, 'maq' computes the optimal treatment allocation over a range of budget levels and estimates the resulting policy value using doubly robust or inverse-propensity weighted scores. The underlying optimization exploits the linear multiple-choice knapsack structure of the allocation problem to compute the full solution path efficiently. For details see Sverdrup, Wu, Athey, and Wager (2025) doi:10.1080/10618600.2024.2418820.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE11 OK, 3 NOTE2026-04-22
- ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 11
- Examples that run
- 0%6 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 57%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 18%
Downloads
Repository
- PRs merged (all time)
- 99%
- Median days to close, 50 most recently updated closed issues
- 71
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/grf-labs/maq on 2026-10-25.
GitHub Pages site last deployed 2026-08-04 · The repository has a site deploy workflow
Dependencies
Installing maq adds 1 package (1 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB.
Code & Tests
People & History
Package metadata
- First published
- 2023-06-27
- Total releases
- 8 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 34 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("maq")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.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.