ebal
Entropy Reweighting to Create Balanced Samples
Description
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.
Downloads
3.9K
Last 30 days
1885th
14.5K
Last 90 days
50.7K
Last year
Trend: -38% (30d vs prior 30d)
11
Last 30 days
90
Last 90 days
354
Last year
Trend: -71.1% (30d vs prior 30d)
0
Last 7 days
13
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
Show all 13 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-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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 6, 2026
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
CRAN incoming feasibility
Maintainer: ‘Jens Hainmueller <jhain@stanford.edu>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Jens",
family = "Hainmueller",
role = c("aut", "cre"),
email = "jhain@stanford.edu")
as necessary.
CRAN incoming feasibility
Maintainer: ‘Jens Hainmueller <jhain@stanford.edu>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Jens",
family = "Hainmueller",
role = c("aut", "cre"),
email = "jhain@stanford.edu")
as necessary.
Code
Structure
Lines of code
1,592
Files
31
Compiled share
0%
Has compiled src
No
Language breakdown
API
Exported functions
7
Internal functions
13
Testing & CI
Has tests
Yes
Test-to-code ratio
0.38
testthat edition
3
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
100%
\dontrun example ratio
0%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
Yes
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
100%
Unsafe pattern score
0
Dep constraint coverage
0%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
–
System requirements
–
C++ standard
–
License
GPL (>= 2)
License flags
SPDX valid, OSI approved
History
Versions
8
First release
2011-07-27
Latest release
2026-04-29
Avg cadence
185 days
Cold removal rate
–
Dep drift
3
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.