optweight: Optimization-Based Stable Balancing Weights

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.

Package details

AuthorNoah Greifer [aut, cre] (ORCID: <https://orcid.org/0000-0003-3067-7154>)
MaintainerNoah Greifer <noah.greifer@gmail.com>
LicenseGPL
Version1.0.0
URL https://ngreifer.github.io/optweight/ https://github.com/ngreifer/optweight
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("optweight")

Try the optweight package in your browser

Any scripts or data that you put into this service are public.

optweight documentation built on Sept. 9, 2025, 5:42 p.m.