Skip to content

optweight

Optimization-Based Stable Balancing Weights

v2.0.1 · Mar 19, 2026 · GPL

Description

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).

Downloads

3.6K

Last 30 days

2104th

11.2K

Last 90 days

40.2K

Last year

Trend: +11.5% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 26, 2026
WARNING 5 OK · 0 NOTE · 9 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
WARNING r-devel-linux-x86_64-debian-clang

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-devel-linux-x86_64-debian-gcc

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-devel-linux-x86_64-fedora-clang

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-devel-linux-x86_64-fedora-gcc

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-devel-windows-x86_64

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-patched-linux-x86_64

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-release-linux-x86_64

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-release-windows-x86_64

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.
WARNING r-oldrel-windows-x86_64

examples

Found the following significant warnings:

  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warni
...[truncated]...
eprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
  Warning: ! The `polish` argument is deprecated.
Deprecated functions may be defunct as soon as of the next release of
R.
See ?Deprecated.

Reverse Dependencies (3)

Dependency Network

Dependencies Reverse dependencies osqp chk rlang cli (>= 3.6.5) Matrix collapse ggplot2 (>= 4.0.0) WeightIt cobalt jointVIP optweight

Version History

updated 2.0.1 ← 2.0.0 diff Mar 19, 2026
new 2.0.0 Mar 10, 2026
updated 2.0.0 ← 1.0.0 diff Jan 23, 2026
updated 1.0.0 ← 0.2.5 diff Sep 8, 2025
updated 0.2.5 ← 0.2.4 diff Sep 15, 2019
updated 0.2.4 ← 0.2.3 diff Sep 2, 2019
updated 0.2.3 ← 0.2.2 diff Aug 25, 2019
updated 0.2.2 ← 0.2.1 diff Mar 3, 2019
updated 0.2.1 ← 0.2.0 diff Jan 15, 2019
updated 0.2.0 ← 0.1.0 diff Oct 16, 2018
new 0.1.0 Sep 21, 2018