{
  "_id": "6a15682bacfb0bcc41d6219e",
  "Package": "banditsCI",
  "Title": "Bandit-Based Experiments and Policy Evaluation",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Molly\", \"Offer-Westort\", email = \"mollyow@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"), comment = c(ORCID = \"0000-0003-2787-9919\")),\nperson(\"Yinghui\", \"Zhou\", email = \"yz4690@columbia.edu\", role = c(\"aut\"), comment = c(ORCID = \"0009-0002-3515-9751\")),\nperson(\"Ruohan\", \"Zhan\", email = \"rhzhan@ust.hk\", role = c(\"aut\"), comment = c(ORCID = \"0000-0002-3426-2784\")))",
  "Description": "Frequentist inference on adaptively generated data. The\nmethods implemented are based on Zhan et al. (2021)\n<doi:10.48550/arXiv.2106.02029> and Hadad et al. (2021)\n<doi:10.48550/arXiv.1911.02768>. For illustration, several\nfunctions for simulating non-contextual and contextual adaptive\nexperiments using Thompson sampling are also supplied.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.3",
  "URL": "https://github.com/UChicago-pol-methods/banditsCI,\nhttps://uchicago-pol-methods.github.io/banditsCI/",
  "BugReports": "https://github.com/UChicago-pol-methods/banditsCI/issues",
  "Config/testthat/edition": "3",
  "RdMacros": "Rdpack",
  "Collate": "'experiment_utils.R' 'adaptive_utils.R' 'errors.R'",
  "VignetteBuilder": "knitr",
  "Repository": "https://uchicago-pol-methods.r-universe.dev",
  "Date/Publication": "2024-12-01 20:40:18 UTC",
  "RemoteUrl": "https://github.com/uchicago-pol-methods/banditsci",
  "RemoteRef": "HEAD",
  "RemoteSha": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-26 09:26:55 UTC",
    "User": "root"
  },
  "Author": "Molly Offer-Westort [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-2787-9919>),\nYinghui Zhou [aut] (ORCID: <https://orcid.org/0009-0002-3515-9751>),\nRuohan Zhan [aut] (ORCID: <https://orcid.org/0000-0002-3426-2784>)",
  "Maintainer": "Molly Offer-Westort <mollyow@gmail.com>",
  "MD5sum": "e309369fee9131d8504c3b566a6256dc",
  "_user": "uchicago-pol-methods",
  "_type": "src",
  "_file": "banditsCI_1.0.0.tar.gz",
  "_fileid": "abd6f394f4fc3aaab37978087828708a5ca2d424ea925b2420623cfa1e167537",
  "_filesize": 2173232,
  "_sha256": "abd6f394f4fc3aaab37978087828708a5ca2d424ea925b2420623cfa1e167537",
  "_created": "2026-05-26T09:26:55.000Z",
  "_published": "2026-05-26T09:30:19.608Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77845581449,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7213528346"
    },
    {
      "job": 77845581399,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7213526559"
    },
    {
      "job": 77845581439,
      "time": 162,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7213526189"
    },
    {
      "job": 77845581555,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7213520127"
    },
    {
      "job": 77844836592,
      "time": 260,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7213480129"
    },
    {
      "job": 77845581426,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7213520224"
    },
    {
      "job": 77845581423,
      "time": 88,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7213513338"
    },
    {
      "job": 77845581432,
      "time": 89,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7213513723"
    },
    {
      "job": 77845581481,
      "time": 97,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7213516519"
    }
  ],
  "_buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/uchicago-pol-methods/banditsci",
  "_commit": {
    "id": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
    "author": "Molly Offer-Westort <mollyow@gmail.com>",
    "committer": "Molly Offer-Westort <mollyow@gmail.com>",
    "message": "par() formatting\n",
    "time": 1733085618
  },
  "_maintainer": {
    "name": "Molly Offer-Westort",
    "email": "mollyow@gmail.com",
    "login": "mollyow",
    "description": "",
    "uuid": 15947929,
    "orcid": "0000-0003-2787-9919"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "glmnet",
      "version": ">= 4.1-6",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "version": ">= 7.3-56",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "version": ">= 1.2-2",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "version": ">= 2.6",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "version": ">= 1.43",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "version": ">= 2.23",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "uchicago-pol-methods",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "yinghuizhouu",
      "count": 77,
      "uuid": 102707580
    },
    {
      "user": "mollyow",
      "count": 58,
      "uuid": 15947929
    },
    {
      "user": "amirwilliams",
      "count": 2,
      "uuid": 135175579
    }
  ],
  "_userbio": {
    "uuid": 91171296,
    "type": "organization",
    "name": "Quantitative Political Methodology at the University of Chicago"
  },
  "_downloads": {
    "count": 170,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/banditsCI"
  },
  "_devurl": "https://github.com/uchicago-pol-methods/banditsci",
  "_pkgdown": "https://uchicago-pol-methods.github.io/banditsCI/",
  "_searchresults": 9,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/banditsCI.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/uchicago-pol-methods/banditsci",
  "_realowner": "uchicago-pol-methods",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-11-29"
    }
  ],
  "_exports": [
    ".check_A",
    ".check_first_batch",
    ".check_shape",
    "aw_estimate",
    "aw_scores",
    "aw_var",
    "calculate_balwts",
    "calculate_continuous_X_statistics",
    "draw_thompson",
    "estimate",
    "generate_bandit_data",
    "ifelse_clip",
    "impose_floor",
    "LinTSModel",
    "output_estimates",
    "plot_cumulative_assignment",
    "ridge_init",
    "ridge_muhat_lfo_pai",
    "ridge_update",
    "run_experiment",
    "simple_tree_data",
    "stick_breaking",
    "twopoint_stable_var_ratio",
    "update_thompson"
  ],
  "_help": [
    {
      "page": "aw_estimate",
      "title": "Estimate policy value via non-contextual adaptive weighting.",
      "topics": [
        "aw_estimate"
      ]
    },
    {
      "page": "aw_scores",
      "title": "Compute AIPW/doubly robust scores.",
      "topics": [
        "aw_scores"
      ]
    },
    {
      "page": "aw_var",
      "title": "Variance of policy value estimator via non-contextual adaptive weighting.",
      "topics": [
        "aw_var"
      ]
    },
    {
      "page": "calculate_balwts",
      "title": "Calculate balancing weight scores.",
      "topics": [
        "calculate_balwts"
      ]
    },
    {
      "page": "calculate_continuous_X_statistics",
      "title": "Estimate/variance of policy evaluation via contextual weighting.",
      "topics": [
        "calculate_continuous_X_statistics"
      ]
    },
    {
      "page": "draw_thompson",
      "title": "Thompson Sampling draws.",
      "topics": [
        "draw_thompson"
      ]
    },
    {
      "page": "estimate",
      "title": "Estimate/variance of policy evaluation via non-contextual weighting.",
      "topics": [
        "estimate"
      ]
    },
    {
      "page": "generate_bandit_data",
      "title": "Generate classification data.",
      "topics": [
        "generate_bandit_data"
      ]
    },
    {
      "page": "ifelse_clip",
      "title": "Clip lamb values between a minimum x and maximum y.",
      "topics": [
        "ifelse_clip"
      ]
    },
    {
      "page": "impose_floor",
      "title": "Impose probability floor.",
      "topics": [
        "impose_floor"
      ]
    },
    {
      "page": "LinTSModel",
      "title": "Linear Thompson Sampling model.",
      "topics": [
        "LinTSModel"
      ]
    },
    {
      "page": "output_estimates",
      "title": "Policy evaluation with adaptively generated data.",
      "topics": [
        "output_estimates"
      ]
    },
    {
      "page": "plot_cumulative_assignment",
      "title": "Plot cumulative assignment for bandit experiment.",
      "topics": [
        "plot_cumulative_assignment"
      ]
    },
    {
      "page": "ridge_init",
      "title": "Ridge Regression Initialization for Arm Expected Rewards",
      "topics": [
        "ridge_init"
      ]
    },
    {
      "page": "ridge_muhat_lfo_pai",
      "title": "Leave-future-out ridge-based estimates for arm expected rewards.",
      "topics": [
        "ridge_muhat_lfo_pai"
      ]
    },
    {
      "page": "ridge_update",
      "title": "Updates ridge regression matrices.",
      "topics": [
        "ridge_update"
      ]
    },
    {
      "page": "run_experiment",
      "title": "Run an experiment using Thompson Sampling.",
      "topics": [
        "run_experiment"
      ]
    },
    {
      "page": "simple_tree_data",
      "title": "Generate simple tree data.",
      "topics": [
        "simple_tree_data"
      ]
    },
    {
      "page": "stick_breaking",
      "title": "Stick breaking function.",
      "topics": [
        "stick_breaking"
      ]
    },
    {
      "page": "twopoint_stable_var_ratio",
      "title": "Calculate allocation ratio for a two-point stable-variance bandit.",
      "topics": [
        "twopoint_stable_var_ratio"
      ]
    },
    {
      "page": "update_thompson",
      "title": "Update linear Thompson Sampling model.",
      "topics": [
        "update_thompson"
      ]
    }
  ],
  "_readme": "https://github.com/uchicago-pol-methods/banditsci/raw/HEAD/README.md",
  "_rundeps": [
    "codetools",
    "foreach",
    "glmnet",
    "iterators",
    "lattice",
    "MASS",
    "Matrix",
    "mvtnorm",
    "rbibutils",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "shape",
    "survival"
  ],
  "_vignettes": [
    {
      "source": "banditsCI.Rmd",
      "filename": "banditsCI.html",
      "title": "Confidence interval vignette.",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Set parameters.",
        "For the contextual case.",
        "Estimating response.",
        "For the non-contextual case."
      ],
      "created": "2023-09-08 18:26:59",
      "modified": "2024-12-01 20:39:07",
      "commits": 9
    }
  ],
  "_score": 4,
  "_indexed": true,
  "_nocasepkg": "banditsci",
  "_universes": [
    "uchicago-pol-methods",
    "mollyow"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-26T09:29:05.000Z",
      "distro": "noble",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "299bd9ed7b5b52de5c895ff9d854c164562c7782c697c145fcb31a893e2fe4e4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-26T09:29:01.000Z",
      "distro": "noble",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "99a2f195a8d34c520e01ab69d30c6b52476037598691419d569fbe31d5fd5075",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-26T09:29:03.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "c6017c9eeeee568d1bcc67313b56f414b9c3445ad7bf3dfd3200af6efc1572e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-26T09:28:50.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "c8b7ddf8783f3f091d7d58b5eddb5f23a90b5272edf48dcff499806523a6fa2a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-05-26T09:29:02.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "1139b8a9517740435e8531a6b3eb3fdf2e8c218107163930b032e3a7b34725ba",
      "status": "success",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-26T09:28:19.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "2a7bc8bfa12f3731780188d5b1ed4a2dcea91f97783256122f7e5e30a0d4fd8c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-26T09:28:19.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "9d61e7c9c9f53cb811f75c7e7fde8a1b0f182e35146d441e3810cb46e8a14586",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-26T09:28:26.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "75daf595a2c017469e017f29c19270312e165388116f6c66aea3c6010ffbef34",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/26443804301"
    }
  ]
}