Package: optweight 0.2.5.9001

optweight: Targeted Stable Balancing Weights Using Optimization

Use optimization to estimate weights that balance covariates for binary, multinomial, and continuous 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.

Authors:Noah Greifer [aut, cre]

optweight_0.2.5.9001.tar.gz
optweight_0.2.5.9001.zip(r-4.5)optweight_0.2.5.9001.zip(r-4.4)optweight_0.2.5.9001.zip(r-4.3)
optweight_0.2.5.9001.tgz(r-4.5-any)optweight_0.2.5.9001.tgz(r-4.4-any)optweight_0.2.5.9001.tgz(r-4.3-any)
optweight_0.2.5.9001.tar.gz(r-4.5-noble)optweight_0.2.5.9001.tar.gz(r-4.4-noble)
optweight_0.2.5.9001.tgz(r-4.4-emscripten)optweight_0.2.5.9001.tgz(r-4.3-emscripten)
optweight.pdf |optweight.html
optweight/json (API)
NEWS

# Install 'optweight' in R:
install.packages('optweight', repos = c('https://ngreifer.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ngreifer/optweight/issues

Pkgdown site:https://ngreifer.github.io

On CRAN:

Conda-Forge:

causal-inferenceinverse-probability-weightsobservational-studyoptimizationpropensity-scores

3.78 score 8 stars 15 scripts 880 downloads 6 exports 30 dependencies

Last updated 2 years agofrom:2c201beeb2. Checks:1 OK, 8 WARNING. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 04 2025
R-4.5-winWARNINGMar 04 2025
R-4.5-macWARNINGMar 04 2025
R-4.5-linuxWARNINGMar 04 2025
R-4.4-winWARNINGMar 04 2025
R-4.4-macWARNINGMar 04 2025
R-4.4-linuxWARNINGMar 04 2025
R-4.3-winWARNINGMar 04 2025
R-4.3-macWARNINGMar 04 2025

Exports:check.targetscheck.tolsoptweightoptweight.fitoptweight.svyoptweight.svy.fit

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmeosqppillarpkgconfigR6RColorBrewerRcpprlangscalestibbleutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Construct and Check Targets Inputcheck.targets print.optweight.targets
Construct and Check Tolerance Inputcheck.tols print.optweight.tols
Estimate Balancing Weights Using Optimizationoptweight print.optweight print.optweightMSM
Fitting Function for Optweightoptweight.fit
Estimate Targeting Weights Using Optimizationoptweight.svy print.optweight.svy
Fitting Function for Optweight for Survey Weightsoptweight.svy.fit
Plot Dual Variables for Assessing Balance Constraintsplot.optweight plot.optweight.svy
Summarize, print, and plot information about estimated weightsplot.summary.optweight print.summary.optweight print.summary.optweight.svy print.summary.optweightMSM summary.optweight summary.optweight.svy summary.optweightMSM