Package: maq 0.6.1
maq: Multi-Armed Qini
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>.
Authors:
maq_0.6.1.tar.gz
maq_0.6.1.zip(r-4.7-x86_64)maq_0.6.1.zip(r-4.7-arm64)maq_0.6.1.zip(r-4.6-x86_64)maq_0.6.1.zip(r-4.6-arm64)maq_0.6.1.zip(r-4.5-x86_64)
maq_0.6.1.tgz(r-4.6-x86_64)maq_0.6.1.tgz(r-4.6-arm64)maq_0.6.1.tgz(r-4.5-x86_64)maq_0.6.1.tgz(r-4.5-arm64)
maq_0.6.1.tar.gz(r-4.7-arm64)maq_0.6.1.tar.gz(r-4.7-x86_64)maq_0.6.1.tar.gz(r-4.6-arm64)maq_0.6.1.tar.gz(r-4.6-x86_64)
maq_0.6.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
maq/json (API)
| # Install 'maq' in R: |
| install.packages('maq', repos = c('https://erikcs.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/grf-labs/maq/issues
Last updated from:5d2d5b8f0c. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 107 | ||
| linux-devel-x86_64 | OK | 131 | ||
| source / vignettes | OK | 196 | ||
| linux-release-arm64 | OK | 93 | ||
| linux-release-x86_64 | OK | 112 | ||
| macos-release-arm64 | OK | 203 | ||
| macos-release-x86_64 | OK | 249 | ||
| macos-oldrel-arm64 | OK | 218 | ||
| macos-oldrel-x86_64 | OK | 415 | ||
| windows-devel-arm64 | OK | 329 | ||
| windows-devel-x86_64 | OK | 125 | ||
| windows-release-arm64 | OK | 335 | ||
| windows-release-x86_64 | OK | 96 | ||
| windows-oldrel-x86_64 | OK | 110 | ||
| wasm-release | OK | 107 |
Exports:average_gaindifference_gainget_aipw_scoresget_ipw_scoresintegrated_differencemaqscale_maq
Dependencies:Rcpp
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Get estimate of gain given a spend level. | average_gain |
| Get estimate of difference in gain given a spend level with paired standard errors. | difference_gain |
| Construct evaluation scores via augmented inverse-propensity weighting. | get_aipw_scores |
| Construct evaluation scores via inverse-propensity weighting. | get_ipw_scores |
| Get estimate of the area between two Qini curves with paired standard errors. | integrated_difference |
| Fit a multi-armed Qini curve. | maq |
| Plot the estimated Qini curve. | plot.maq |
| Predict treatment allocation. | predict.maq |
| Print a maq object. | print.maq |
| Scale a Qini curve. | scale_maq |
| Qini curve summary. | summary.maq |