Package: ebal 0.3-0
ebal: Entropy Reweighting to Create Balanced Samples
Implements entropy balancing, a data preprocessing procedure described in Hainmueller (2012, <doi:10.1093/pan/mpr025>) that allows users to reweight a dataset such that the covariate distributions in the reweighted data satisfy a set of user-specified moment conditions. Useful for creating balanced samples in observational studies with a binary treatment where the control group is reweighted to match the covariate moments of the treatment group, and for reweighting a survey sample to known characteristics from a target population.
Authors:
ebal_0.3-0.tar.gz
ebal_0.3-0.zip(r-4.7)ebal_0.3-0.zip(r-4.6)ebal_0.3-0.zip(r-4.5)
ebal_0.3-0.tgz(r-4.6-any)ebal_0.3-0.tgz(r-4.5-any)
ebal_0.3-0.tar.gz(r-4.7-any)ebal_0.3-0.tar.gz(r-4.6-any)
ebal_0.3-0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ebal/json (API)
| # Install 'ebal' in R: |
| install.packages('ebal', repos = c('https://j-hai.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/j-hai/ebal/issues
Last updated from:fc85de5757. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 128 | ||
| source / vignettes | OK | 181 | ||
| linux-release-x86_64 | OK | 128 | ||
| macos-release-arm64 | OK | 88 | ||
| macos-oldrel-arm64 | OK | 77 | ||
| windows-devel | OK | 93 | ||
| windows-release | OK | 72 | ||
| windows-oldrel | OK | 72 | ||
| wasm-release | OK | 103 |
Exports:balance_tablebaltest.collectdiagnosticsebebalanceebalance.trimgetsquaresline.searchermatrixmaker
Dependencies:
Last update: 2026-05-11
Started: 2026-05-05
Last update: 2026-05-11
Started: 2026-05-05
Last update: 2026-05-11
Started: 2026-05-05
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Per-covariate balance table for an entropy-balancing fit | balance_table |
| Collect Covariate Balance Statistics | baltest.collect |
| "Is my fit okay?" diagnostic check for an entropy-balancing fit | diagnostics print.ebalance.diagnostics |
| Function for Entropy Balancing | eb |
| Entropy balancing | ebalance |
| Methods for ebalance and ebalance.trim objects | plot.ebalance plot.ebalance.trim print.ebalance print.ebalance.trim print.summary.ebalance print.summary.ebalance.trim summary.ebalance summary.ebalance.trim weights.ebalance weights.ebalance.trim |
| Trimming of Weights for Entropy Balancing | ebalance.trim |
| Generate Matrix of Squared Terms | getsquares |
| Optimal step length search for entropy balancing algorithm | line.searcher |
| Generate Matrix of One-way Interactions and Squared Terms | matrixmaker |
