Optimization-Based Stable Balancing Weights
Overview
Use optimization to estimate weights that balance covariates for binary, multi-category, continuous, and multivariate treatments in the spirit of Zubizarreta (2015) doi:10.1080/01621459.2015.1023805. The degree of balance can be specified for each covariate. In addition, sampling weights can be estimated that allow a sample to generalize to a population specified with given target moments of covariates, as in matching-adjusted indirect comparison (MAIC).
- Added support for the new version of *osqp*, which changes some optional argument names and defaults. These should not impact results.
- Added tests for *clarabel*.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-26
- WARNING5 OK, 9 WARNING2026-03-10
Documentation
- Help pages
- 8 (1 internal)includes a package overview page
- Examples that run
- 100%7 run in a plain check (7 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 92%
- Return-value docs
- 100%
- Help pages citing references
- 63%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/ngreifer/optweight on 2026-10-18.
GitHub Pages site last deployed 2026-04-10 · The repository has a site deploy workflow
pkgdown site last built 2026-04-10
Dependencies
Installing optweight adds 21 packages (10 with compiled code, 18 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, isoband 1.5 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.0.1Latest
- 2.0.02026-01-24 · diff ↗
- 1.0.0
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.2.52019-09-16 · diff ↗
- unarchivedReturned to CRAN2019-09-03
- archivedRemoved from CRAN2019-09-03check issues were not corrected Depends on broken package 'osqp'
- 0.2.42019-09-03 · diff ↗
- 0.2.32019-08-26 · diff ↗
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2018-09-22
- Total releases
- 10 / 8 yrs
- License
- GPL
- Minimum R
- ≥ 4.1.0
- Download size
- 581 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("optweight")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.