{
  "_id": "6ae9e78f2e87f76f20ad121d",
  "Package": "balancing",
  "Title": "Optimization-Based Balancing Weights for Causal Inference",
  "Version": "0.0.0.9000",
  "Authors@R": "c(\nperson(\"Malcolm\", \"Barrett\", , \"malcolmbarrett@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-0299-5825\")),\nperson(\"The authors of the vendored Rust crates\", role = \"cph\",\ncomment = \"see src/rust/Cargo.lock and the bundled crate sources for the full list\")\n)",
  "Description": "Calculates optimization-based balancing weights for causal\ninference, including entropy balancing, inverse probability\ntilting, the covariate balancing propensity score, energy\nbalancing, characteristic function distance balancing, and\nstable balancing weights. Weights target covariate balance\ndirectly by solving a convex optimization problem, with support\nfor binary, categorical, and continuous exposures across a\nrange of causal estimands. A Rust core provides the numerical\nsolvers.",
  "License": "MIT + file LICENSE",
  "URL": "https://r-causal.github.io/balancing/,\nhttps://github.com/r-causal/balancing",
  "BugReports": "https://github.com/r-causal/balancing/issues",
  "VignetteBuilder": "knitr",
  "Remotes": [
    "r-causal/causalgenerics",
    "r-causal/deli",
    "r-causal/propensity"
  ],
  "Config/roxygen2/version": "8.1.0",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "SystemRequirements": "Cargo (Rust's package manager), rustc (>= 1.88),\nGNU make, xz, cmake",
  "Config/pak/sysreqs": "cmake make xz-utils libclang-dev",
  "Repository": "https://r-causal.r-universe.dev",
  "Date/Publication": "2026-10-04 21:34:28 UTC",
  "RemoteUrl": "https://github.com/r-causal/balancing",
  "RemoteRef": "HEAD",
  "RemoteSha": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-03 13:36:31 UTC",
    "User": "root"
  },
  "Author": "Malcolm Barrett [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-0299-5825>),\nThe authors of the vendored Rust crates [cph] (see src/rust/Cargo.lock\nand the bundled crate sources for the full list)",
  "Maintainer": "Malcolm Barrett <malcolmbarrett@gmail.com>",
  "_user": "r-causal",
  "_type": "src",
  "_file": "balancing_0.0.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/5d88fd89d73e36b2138e23dc11568ad588a784c65304295741f9326279646206",
  "_filesize": 1075415,
  "_sha256": "5d88fd89d73e36b2138e23dc11568ad588a784c65304295741f9326279646206",
  "_expires": "2027-02-11T13:54:21.000Z",
  "_created": "2026-11-03T13:36:31.000Z",
  "_published": "2026-11-03T13:54:23.855Z",
  "_upstream": "https://github.com/r-causal/balancing",
  "_status": "success",
  "_maintainer": {
    "name": "Malcolm Barrett",
    "email": "malcolmbarrett@gmail.com",
    "login": "malcolmbarrett",
    "mastodon": "@malcolmbarrett@mstdn.jp",
    "bluesky": "@malcolmbarrett.malco.io",
    "orcid": "0000-0003-0299-5825",
    "description": "Open-source data science. Ph.D. in Epidemiology",
    "uuid": 23123711
  },
  "_jobs": [
    {
      "job": 125951685807,
      "time": 344,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13235253884"
    },
    {
      "job": 125951685802,
      "time": 377,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13235278505"
    },
    {
      "job": 125951685864,
      "time": 301,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13236030212"
    },
    {
      "job": 125951685752,
      "time": 256,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13235501300"
    },
    {
      "job": 125951685918,
      "time": 436,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13236510294"
    },
    {
      "job": 125951685886,
      "time": 722,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13235328127"
    },
    {
      "job": 125951685790,
      "time": 438,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13235124486"
    },
    {
      "job": 125951685811,
      "time": 782,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13236850849"
    },
    {
      "job": 125948359486,
      "time": 376,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13235480738"
    },
    {
      "job": 125951685648,
      "time": 264,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13235651025"
    },
    {
      "job": 125951685768,
      "time": 916,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13236536055"
    },
    {
      "job": 125951685816,
      "time": 398,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13235029422"
    },
    {
      "job": 125951685856,
      "time": 437,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13235791222"
    },
    {
      "job": 125951685872,
      "time": 718,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13235927842"
    },
    {
      "job": 125951685798,
      "time": 453,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13235218490"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939",
  "_commit": {
    "id": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
    "author": "Malcolm Barrett <malcolmbarrett@gmail.com>",
    "committer": "Malcolm Barrett <malcolmbarrett@gmail.com>",
    "message": "Merge branch 'add-package-logo' into HEAD\n",
    "time": 1791149668
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3",
      "role": "Depends"
    },
    {
      "package": "causalgenerics",
      "version": ">= 0.1.0.9000",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "deli",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "S7",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "role": "Imports"
    },
    {
      "package": "halfmoon",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "mice",
      "role": "Suggests"
    },
    {
      "package": "optweight",
      "role": "Suggests"
    },
    {
      "package": "osqp",
      "role": "Suggests"
    },
    {
      "package": "pkgload",
      "role": "Suggests"
    },
    {
      "package": "propensity",
      "version": ">= 0.1.0.9000",
      "role": "Suggests"
    },
    {
      "package": "quadprog",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "r-causal",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-28",
      "n": 8
    },
    {
      "week": "2026-29",
      "n": 14
    },
    {
      "week": "2026-30",
      "n": 19
    },
    {
      "week": "2026-31",
      "n": 99
    },
    {
      "week": "2026-32",
      "n": 10
    },
    {
      "week": "2026-33",
      "n": 2
    },
    {
      "week": "2026-35",
      "n": 2
    },
    {
      "week": "2026-36",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "malcolmbarrett",
      "count": 337,
      "uuid": 23123711
    }
  ],
  "_userbio": {
    "uuid": 129535100,
    "type": "organization",
    "name": "Causal Inference in R",
    "followers": 177,
    "description": "Tools and educational material for causal inference in R"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/balancing"
  },
  "_devurl": "https://github.com/r-causal/balancing",
  "_pkgdown": "https://r-causal.github.io/balancing/",
  "_searchresults": 20,
  "_cargo": true,
  "_topics": [
    "rust",
    "cargo"
  ],
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/balancing.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",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "as_bw",
    "as_conditional",
    "as_marginal",
    "balance",
    "balance_method",
    "balance_terms",
    "balancing",
    "balancing_estimating_equations",
    "build_constraint_matrix",
    "bw",
    "bw_cbps",
    "bw_cfd",
    "bw_energy",
    "bw_entropy",
    "bw_ipt",
    "bw_sbw",
    "estimand",
    "estimating_equation_method",
    "estimating_equations",
    "fit_method",
    "ipw",
    "is_bw",
    "is_causal_wt",
    "method_label",
    "new_bw",
    "pool_ipw",
    "quadratic_program_method",
    "rebuild_constraint_matrix",
    "supported_estimands",
    "supported_exposure_types",
    "supports_estimating_equations"
  ],
  "_help": [
    {
      "page": "balance",
      "title": "Estimate balancing weights",
      "topics": [
        "balance"
      ]
    },
    {
      "page": "balance_method",
      "title": "The balancing method specification classes",
      "topics": [
        "balance_method",
        "estimating_equation_method",
        "quadratic_program_method"
      ]
    },
    {
      "page": "balance_terms",
      "title": "Balance constraints",
      "topics": [
        "balance_terms"
      ]
    },
    {
      "page": "balancing",
      "title": "A fitted balancing result",
      "topics": [
        "balancing"
      ]
    },
    {
      "page": "balancing_options",
      "title": "Package options",
      "topics": [
        "balancing_options"
      ]
    },
    {
      "page": "bw",
      "title": "Balancing weight vectors",
      "topics": [
        "as_bw",
        "bw",
        "is_bw",
        "new_bw"
      ]
    },
    {
      "page": "bw_cbps",
      "title": "Covariate balancing propensity score",
      "topics": [
        "bw_cbps"
      ]
    },
    {
      "page": "bw_cfd",
      "title": "Characteristic function distance balancing",
      "topics": [
        "bw_cfd"
      ]
    },
    {
      "page": "bw_energy",
      "title": "Energy balancing",
      "topics": [
        "bw_energy"
      ]
    },
    {
      "page": "bw_entropy",
      "title": "Entropy balancing",
      "topics": [
        "bw_entropy"
      ]
    },
    {
      "page": "bw_ipt",
      "title": "Inverse probability tilting",
      "topics": [
        "bw_ipt"
      ]
    },
    {
      "page": "bw_sbw",
      "title": "Stable balancing weights",
      "topics": [
        "bw_sbw"
      ]
    },
    {
      "page": "estimating_equations",
      "title": "Extract the estimating-equations container",
      "topics": [
        "estimating_equations"
      ]
    },
    {
      "page": "ipw.balancing",
      "title": "Inverse probability weighting for a balancing fit",
      "topics": [
        "ipw.balancing"
      ]
    },
    {
      "page": "weights-balancing-balancing-method",
      "title": "Extract balancing weights",
      "topics": [
        "weights,balancing::balancing-method"
      ]
    }
  ],
  "_pkglogo": "https://github.com/r-causal/balancing/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/r-causal/balancing/raw/HEAD/README.md",
  "_rundeps": [
    "causalgenerics",
    "cli",
    "deli",
    "generics",
    "glue",
    "lifecycle",
    "rlang",
    "rootSolve",
    "S7",
    "tidyselect",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "choosing-a-method.Rmd",
      "filename": "choosing-a-method.html",
      "title": "Choosing a balancing method",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Two families of methods",
        "Which exposures and estimands each method supports",
        "Exact versus tolerance-based balance",
        "Constraints in depth",
        "Continuous exposures",
        "A note on solvers"
      ],
      "created": "2026-07-14 22:10:38",
      "modified": "2026-08-31 15:04:23",
      "commits": 8
    },
    {
      "source": "balancing.Rmd",
      "filename": "balancing.html",
      "title": "Get started with balancing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A confounded example",
        "Fitting balancing weights",
        "Checking balance with halfmoon",
        "Estimating a causal effect",
        "Standard errors with ipw()",
        "Where to go next"
      ],
      "created": "2026-07-14 22:10:38",
      "modified": "2026-08-02 15:56:10",
      "commits": 7
    },
    {
      "source": "inference.Rmd",
      "filename": "inference.html",
      "title": "Inference after balancing",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why the weights' uncertainty matters",
        "M-estimation with ipw()",
        "Categorical exposures",
        "Effect modification with .by",
        "Joint exposures",
        "Continuous exposures",
        "Covariate-adjusted outcome models",
        "Bootstrapping the other fits",
        "Choosing an approach"
      ],
      "created": "2026-07-14 22:10:38",
      "modified": "2026-08-31 15:04:23",
      "commits": 13
    }
  ],
  "_score": 4.9084850188786495,
  "_indexed": true,
  "_nocasepkg": "balancing",
  "_universes": [
    "r-causal",
    "malcolmbarrett"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:40:12.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/0c022d7d649f5eb8bbcdd114611a9d4395f27b62cda506956d90645de418ce82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:40:25.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/4c420dc1cc62ad970c44167b746301b962357e5a0cf2e92ef3036a20115dd0a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:39:51.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/3012048abb78ad572e37816f60d49bcc45ee91e3e05c64e034d1bb91dfb3f14c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:40:05.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/0ed9a6b6884e21478e64a91bb382c22b6832cd3c96da8899cb2ce6446db195d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:42:40.000Z",
      "arch": "aarch64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/a889f4ec6cac557f463bc82105da2d795606f02328b8cd3d90cc192a09be35a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:43:56.000Z",
      "arch": "x86_64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/8a37779425c13dd2e25179a896b41183bfc9ba8b7bd13469eb0cd2e02ab5d707",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:42:27.000Z",
      "arch": "aarch64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/7f5359e9f5cda1754a6900b80d6cf145b0ae16bb00360270bd0e9de0e49480e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:44:56.000Z",
      "arch": "x86_64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/cf830c3b6c2c263a573b8ae1ff7d34195a098e9d6378f4f14998b9141a1eaf7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:40:40.000Z",
      "arch": "emscripten",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/e696bde4cb5358e2ccb905baa2fc06e5adecf708ac3e8e0b93e924af9b188e9d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:44:47.000Z",
      "arch": "aarch64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/ce3c98fe4593d486ff3e1c120e8b08d91537216ec2d268185383286edf869844",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:39:02.000Z",
      "arch": "x86_64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/257d301471d53a25831d8fbc48c438a4055ad97bfcac69cefe0bd35a07722fc0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:39:11.000Z",
      "arch": "x86_64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/da7e020a3db4f7358d429a082b35a91d77e3bc5fb8876d466c32689cfee39f40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:43:24.000Z",
      "arch": "aarch64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/606d06e925073ea374a805aee48fe3d09a3b3eab4d3fe4ca1b9532b89bce03fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-11-03T13:39:22.000Z",
      "arch": "x86_64",
      "commit": "1b40fcb2779daa83d18ad45fb316c46a6f1ff444",
      "fileid": "https://r2.ropensci.org/36839523334c4e41c9668657f53e9f04ecfa3ac698f1d8ddfdf3a25911eb8c85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-causal/actions/runs/41645077939"
    }
  ]
}