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).
| Version: | 2.0.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | osqp (≥ 0.6.3.3), chk (≥ 0.10.0), rlang (≥ 1.1.6), cli (≥ 3.6.5), Matrix (≥ 1.2-13), collapse (≥ 2.1.5), ggplot2 (≥ 4.0.0), graphics, stats, utils |
| Suggests: | cobalt (≥ 4.6.0), scs (≥ 3.2.7), clarabel (≥ 0.10.1), highs (≥ 1.10.0-3), lpSolve (≥ 5.6.23), WeightIt, gbm, marginaleffects, sandwich, fwb, knitr, rmarkdown, testthat (≥ 3.0.0) |
| Published: | 2026-01-24 |
| DOI: | 10.32614/CRAN.package.optweight |
| Author: | Noah Greifer |
| Maintainer: | Noah Greifer <noah.greifer at gmail.com> |
| BugReports: | https://github.com/ngreifer/optweight/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL] |
| URL: | https://ngreifer.github.io/optweight/, https://github.com/ngreifer/optweight |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| In views: | CausalInference |
| CRAN checks: | optweight results [issues need fixing before 2026-03-23] |
| Reference manual: | optweight.html , optweight.pdf |
| Vignettes: |
Using optweight to Estimate Stable Balancing Weights (source) |
| Package source: | optweight_2.0.0.tar.gz |
| Windows binaries: | r-devel: optweight_2.0.0.zip, r-release: optweight_2.0.0.zip, r-oldrel: optweight_2.0.0.zip |
| macOS binaries: | r-release (arm64): optweight_2.0.0.tgz, r-oldrel (arm64): optweight_2.0.0.tgz, r-release (x86_64): optweight_2.0.0.tgz, r-oldrel (x86_64): optweight_2.0.0.tgz |
| Old sources: | optweight archive |
| Reverse suggests: | cobalt, jointVIP, WeightIt |
Please use the canonical form https://CRAN.R-project.org/package=optweight to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.