{
  "_id": "6ac38a5f285e8e46a0843dd9",
  "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-10-05 11: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>",
  "_user": "uchicago-pol-methods",
  "_type": "src",
  "_file": "banditsCI_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/abf318130ccf2a97eb85a35ed0f6fea9e14ea92560b9524d6669027d6af0be55",
  "_filesize": 2165135,
  "_sha256": "abf318130ccf2a97eb85a35ed0f6fea9e14ea92560b9524d6669027d6af0be55",
  "_expires": "2027-01-13T11:30:37.000Z",
  "_created": "2026-10-05T11:26:55.000Z",
  "_published": "2026-10-05T11:30:39.801Z",
  "_jobs": [
    {
      "job": 111740035673,
      "time": 105,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11342821059"
    },
    {
      "job": 111740035741,
      "time": 110,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11342690742"
    },
    {
      "job": 111740035680,
      "time": 177,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11342900628"
    },
    {
      "job": 111740035587,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11342861008"
    },
    {
      "job": 111738293501,
      "time": 297,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11342211486"
    },
    {
      "job": 111740035757,
      "time": 89,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11342646145"
    },
    {
      "job": 111740035777,
      "time": 84,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11342556078"
    },
    {
      "job": 111740035744,
      "time": 78,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11342486203"
    },
    {
      "job": 111740035770,
      "time": 86,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11342730987"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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": 3,
  "_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",
    "followers": 43
  },
  "_downloads": {
    "count": 313,
    "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": 10,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/banditsCI.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.477121254719663,
  "_indexed": true,
  "_nocasepkg": "banditsci",
  "_universes": [
    "uchicago-pol-methods",
    "mollyow"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-05T11:28:38.000Z",
      "distro": "resolute",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/86aadcb40f745f50b5ed54c11988c5ce80dc911d52c9f9d74f195dc559c98480",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-05T11:28:45.000Z",
      "distro": "resolute",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/03646b8bf8a5c128315a3eed0be8be30786393df5ef9484b7d39c0d71c713724",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-05T11:29:41.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/1f3fa9e06ea4146831b89d4e8bc9df450186290d6500ba123e185fa88f879c2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-05T11:29:09.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/d756691e38837fe0c6de9e8aebf11725beb39b80e9d11d7a8fb3c0a086c867ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-05T11:29:03.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/6c3f87243f674fbd04b99d7954574298ce7fe03a0476376d79eea8d97239fee3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-05T11:28:07.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/264e12b5bc113134ae5a5f4ec60f96646076bc7665a5d2d375393ae975a127ee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-05T11:28:05.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/9d579d356c38d84cd6ce8d77e137db674f0ccbc743f4b832959a0b3225902fd7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-05T11:28:17.000Z",
      "commit": "ba5e4ff3188d58abd45eed807497778ad9b35f79",
      "fileid": "https://r2.ropensci.org/ca7c8bc0d78edad120ba9612ef706911882308b0343fb99081ed4a8ddd9f0a8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/uchicago-pol-methods/actions/runs/37302454674"
    }
  ]
}