{
  "_id": "6ac2229a773a0037682c27f3",
  "Package": "maq",
  "Title": "Multi-Armed Qini",
  "Version": "0.6.1",
  "Authors@R": "c(\nperson(\"Erik\", \"Sverdrup\", email = \"erik.sverdrup@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Han\", \"Wu\", role = \"aut\"),\nperson(\"Susan\", \"Athey\", role = \"aut\"),\nperson(\"Stefan\", \"Wager\", role = \"aut\")\n)",
  "Description": "Fits generalized Qini curves for evaluating treatment\nallocation policies with one or more mutually exclusive\ntreatment arms. Given estimated conditional treatment effects\nand treatment costs, 'maq' computes the optimal treatment\nallocation over a range of budget levels and estimates the\nresulting policy value using doubly robust or\ninverse-propensity weighted scores. The underlying optimization\nexploits the linear multiple-choice knapsack structure of the\nallocation problem to compute the full solution path\nefficiently. For details see Sverdrup, Wu, Athey, and Wager\n(2025) <doi:10.1080/10618600.2024.2418820>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "SystemRequirements": "GNU make",
  "URL": "https://github.com/grf-labs/maq",
  "BugReports": "https://github.com/grf-labs/maq/issues",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-04 09:47:48 UTC",
    "User": "root"
  },
  "Author": "Erik Sverdrup [aut, cre], Han Wu [aut], Susan Athey [aut],\nStefan Wager [aut]",
  "Maintainer": "Erik Sverdrup <erik.sverdrup@gmail.com>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://erikcs.r-universe.dev",
  "Date/Publication": "2026-08-04 13:10:17 UTC",
  "RemoteUrl": "https://github.com/cran/maq",
  "RemoteRef": "HEAD",
  "RemoteSha": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
  "_user": "erikcs",
  "_type": "src",
  "_file": "maq_0.6.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/e8492406f0347cd27ef5f43c82e0528a301dfcb34ed805de3845f701fef3e3c6",
  "_filesize": 254571,
  "_sha256": "e8492406f0347cd27ef5f43c82e0528a301dfcb34ed805de3845f701fef3e3c6",
  "_expires": "2027-01-12T09:55:35.000Z",
  "_created": "2026-10-04T09:47:48.000Z",
  "_published": "2026-10-04T09:55:37.479Z",
  "_jobs": [
    {
      "job": 111409909475,
      "time": 107,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11300380512"
    },
    {
      "job": 111409909433,
      "time": 131,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11299653949"
    },
    {
      "job": 111409909504,
      "time": 93,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300116445"
    },
    {
      "job": 111409909468,
      "time": 112,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11299932038"
    },
    {
      "job": 111409909439,
      "time": 218,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11299688148"
    },
    {
      "job": 111409909409,
      "time": 415,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11299494117"
    },
    {
      "job": 111409909462,
      "time": 203,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300191451"
    },
    {
      "job": 111409909391,
      "time": 249,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300330326"
    },
    {
      "job": 111409382930,
      "time": 196,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11299802165"
    },
    {
      "job": 111409909371,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11299273995"
    },
    {
      "job": 111409909526,
      "time": 329,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11300231633"
    },
    {
      "job": 111409909505,
      "time": 125,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11299827466"
    },
    {
      "job": 111409909495,
      "time": 110,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11300256261"
    },
    {
      "job": 111409909581,
      "time": 335,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11299274233"
    },
    {
      "job": 111409909499,
      "time": 96,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300281031"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845",
  "_status": "success",
  "_upstream": "https://github.com/cran/maq",
  "_commit": {
    "id": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
    "author": "Erik Sverdrup <erik.sverdrup@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.6.1\n",
    "time": 1785849017
  },
  "_maintainer": {
    "name": "Erik Sverdrup",
    "email": "erik.sverdrup@gmail.com",
    "login": "erikcs",
    "description": "",
    "uuid": 7185264
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "grf",
      "version": ">= 2.3.0",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-32",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.6.1",
      "date": "2026-08-04"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "grootci",
      "count": 4,
      "uuid": 52466046
    },
    {
      "user": "anumbat",
      "count": 3,
      "uuid": 228432090
    },
    {
      "user": "erikcs",
      "count": 1,
      "uuid": 7185264
    }
  ],
  "_userbio": {
    "uuid": 7185264,
    "type": "user",
    "name": "Erik Sverdrup",
    "followers": 45
  },
  "_downloads": {
    "count": 335,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/maq"
  },
  "_devurl": "https://github.com/grf-labs/maq",
  "_searchresults": 34,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/maq.html",
    "LICENSE"
  ],
  "_realowner": "erikcs",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2023-06-27"
    },
    {
      "version": "0.2.0",
      "date": "2023-09-03"
    },
    {
      "version": "0.3.0",
      "date": "2023-09-10"
    },
    {
      "version": "0.3.1",
      "date": "2023-10-08"
    },
    {
      "version": "0.4.0",
      "date": "2024-04-18"
    },
    {
      "version": "0.5.0",
      "date": "2024-11-14"
    },
    {
      "version": "0.6.0",
      "date": "2025-04-14"
    },
    {
      "version": "0.6.1",
      "date": "2026-08-04"
    }
  ],
  "_exports": [
    "average_gain",
    "difference_gain",
    "get_aipw_scores",
    "get_ipw_scores",
    "integrated_difference",
    "maq",
    "scale_maq"
  ],
  "_help": [
    {
      "page": "average_gain",
      "title": "Get estimate of gain given a spend level.",
      "topics": [
        "average_gain"
      ]
    },
    {
      "page": "difference_gain",
      "title": "Get estimate of difference in gain given a spend level with paired standard errors.",
      "topics": [
        "difference_gain"
      ]
    },
    {
      "page": "get_aipw_scores",
      "title": "Construct evaluation scores via augmented inverse-propensity weighting.",
      "topics": [
        "get_aipw_scores"
      ]
    },
    {
      "page": "get_ipw_scores",
      "title": "Construct evaluation scores via inverse-propensity weighting.",
      "topics": [
        "get_ipw_scores"
      ]
    },
    {
      "page": "integrated_difference",
      "title": "Get estimate of the area between two Qini curves with paired standard errors.",
      "topics": [
        "integrated_difference"
      ]
    },
    {
      "page": "maq",
      "title": "Fit a multi-armed Qini curve.",
      "topics": [
        "maq"
      ]
    },
    {
      "page": "plot.maq",
      "title": "Plot the estimated Qini curve.",
      "topics": [
        "plot.maq"
      ]
    },
    {
      "page": "predict.maq",
      "title": "Predict treatment allocation.",
      "topics": [
        "predict.maq"
      ]
    },
    {
      "page": "print.maq",
      "title": "Print a maq object.",
      "topics": [
        "print.maq"
      ]
    },
    {
      "page": "scale_maq",
      "title": "Scale a Qini curve.",
      "topics": [
        "scale_maq"
      ]
    },
    {
      "page": "summary.maq",
      "title": "Qini curve summary.",
      "topics": [
        "summary.maq"
      ]
    }
  ],
  "_rundeps": [
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 1.8325089127062364,
  "_indexed": true,
  "_nocasepkg": "maq",
  "_universes": [
    "erikcs",
    "grf-labs"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-04T09:49:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/05ba864dd35c1019f8717d3d50df32bb83c1e92635a4ca8dee4ae7eb36cd1fea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-04T09:50:00.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/d244c00125961ff119508c8b7b8aa35c1301accdc85b47e42cf04eea8b279a21",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-04T09:49:34.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/17df08d555690d3a52e3a2b1937d49a1a283c067d62e81211d34d47bd15f98a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-04T09:49:47.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/c220cf4fc8c555d0f2405badef19bfa5b54e17b5495d538c3e8b345edf8078fd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-04T09:50:55.000Z",
      "arch": "aarch64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/c44a7e01c8802ef5fe26326256fec58459c7f8acd3d3d2a3f52bcbd48070d60a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-04T09:53:17.000Z",
      "arch": "x86_64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/64205ae513580d722f9f1feaa05edfdb3edb90573958ded2a8dbff113a392b08",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-04T09:50:31.000Z",
      "arch": "aarch64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/c175de98b4de5f23a83a1e75e3c877ed20bdbccde40dfb4d52e2cac9e121e37c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-04T09:51:09.000Z",
      "arch": "x86_64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/01d2d5255113c10d3bc2851628a8542de1100e02c04a4eee972a20951369c8c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.1",
      "date": "2026-10-04T09:50:01.000Z",
      "arch": "emscripten",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/d1f0c4f46ec13f82fc45b9f39aac721fc8c46426931541f98cbdd663b80ceb88",
      "status": "success",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-04T09:52:50.000Z",
      "arch": "aarch64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/5a85a983ce6429171f152e4e2550934e2645a9f56b28fd80a31b23625d1f1216",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-04T09:49:10.000Z",
      "arch": "x86_64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/ee732bc2f6f5300573b295568b4cb22a3879765f57f28134bf2dea5b3f259441",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-04T09:49:17.000Z",
      "arch": "x86_64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/25b2e2cffef1d9497d43600f9801096c3d3e9d521ff97afc9c4dbc57d9a7f68c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-04T09:52:47.000Z",
      "arch": "aarch64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/014665caa0482d0b8ccc7b4f3d2476b673b621ae979c8b20b5d000ad5e227e8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-04T09:49:02.000Z",
      "arch": "x86_64",
      "commit": "5d2d5b8f0c62a40d4ebb709ac21efa0dd726e942",
      "fileid": "https://r2.ropensci.org/27fd9ffecc7737e38e4f853100f2e9d7d96e39c3555cb0f4a81f436142ef4283",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/erikcs/actions/runs/37193130845"
    }
  ]
}