Skip to content

Multi-Armed Qini

0packages depend
2.9Kdownloads / year
0.0%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 2.9 min · r-devel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.6.1
READMENoVignettesNoNEWSNoCitation fileNo
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

2.9K
CRAN downloads in the past year
Rank #10,741 · ~8/day · ~243/mo
Daily download trend is not available in this view yet.
28030 days
98490 days
2.9K1 year
Compare downloads with other packages →
Also on443 r2u2 autocran

Repository

17Stars
4Forks
3Open issues
0Open PRs
0Releases
363Commits
1Commit identities
causal-inferencepolicy-evaluationknapsack-problem
License file reads as MIT · 363 commits · Last activity 2026-08-04 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-10-15 · 142026-07-27 · 17
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsAzure Pipelines
Docs source (2)

GitHub Pages site last deployed 2026-08-04 · The repository has a site deploy workflow

Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing maq adds 1 package (1 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB.

Depends (1)
R >= 3.5.0
Imports (1)
LinkingTo (1)
Suggests (3)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 0.1.0 (2023)
Author
Releases (8)

Pick two releases to compare their code metrics.

  • 0.6.1Latest
    record
    2026-08-04 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.6.0
    record
    2025-04-14 · diff ↗ ·
    added 1 export
    scale_maq
  • R
    R 4.5.0 released · 2025-04-11
  • 0.5.0
    record
    2024-11-14 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.0
    record
    2024-04-18 · diff ↗ ·
    added 1 export
    get_aipw_scores
  • 0.3.1
    record
    2023-10-08 · diff ↗
  • 0.3.0
    record
    2023-09-10 · diff ↗ ·
    added 1 export
    integrated_difference
  • 0.2.0
    record
    2023-09-03 · diff ↗ ·
    added 1 export
    get_ipw_scores
  • 0.1.0
    record
    2023-06-27
  • R
    R 4.3.0 released · 2023-04-21

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")
Sverdrup, E., Athey, S., Wager, S., & Wu, H. (2026). maq: Multi-Armed Qini (Version 0.6.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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