Skip to content

ebal

0.2.1

Entropy Reweighting to Create Balanced Samples

6packages depend
52.7Kdownloads / year
73.8%test coverage
13/13checks pass

Overview

About
Maintained by Jens HainmuellerFirst published 2011-07-278 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.38
73.8%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-06
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
25%

Downloads

52.7K
CRAN downloads in the past year
Rank #1,823 · ~144/day · ~4.4K/mo
Daily download trend is not available in this view yet.
2.7K30 days
12.9K90 days
52.7K1 year
Compare downloads with other packages →
Also on338 r2u3 autocran35 c2d4u

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
0Releases
26Commits
1Contributors
26 commits · Last activity 2026-05-12 · 0% stars, 30d

Stars over time

2026-05-08 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/j-hai/ebal on 2026-08-03.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdrevdep/
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (0)
none
Imports (3)
graphicsmethodsstats
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
6direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

8 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.2.1Latest
    2026-04-29 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1-8
    2022-06-09 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 0.1-6
    2014-01-27 · diff ↗
Show 9 earlier events
  • 0.1-5
    2013-10-16 · diff ↗
  • 0.1-4
    2013-08-12 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
  • 0.1-3
    2013-02-09 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 0.1-2
    2011-12-27 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 0.1-1
    2011-07-27
  • R
    R 2.13.0 released · 2011-04-13

Package metadata

First published
2011-07-27
Total releases
8 / 15 yrs
License
GPL (>= 2) OSI
Download size
27 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Start here. This is the citation for the package itself.

citation("ebal")

CRAN DOI

https://doi.org/10.32614/CRAN.package.ebal

BibTeX, derived from DESCRIPTION

@Manual{ebal,
  title  = {ebal: Entropy Reweighting to Create Balanced Samples},
  author = {Hainmueller, Jens},
  year   = {2026},
  note   = {R package version 0.2.1},
  doi    = {10.32614/CRAN.package.ebal},
  url    = {https://CRAN.R-project.org/package=ebal}
}

Derived from the package DESCRIPTION, not from a citation file the authors wrote. If they publish one later, prefer it.

This is the citation for the package. It is not a citation for the R Observatory.

Cite this page

Use this when the claim is about a measurement on this page.

BibTeX

@misc{robservatoryebal,
  author    = {Balamuta, James Joseph},
  title     = {{R} {Observatory}: Metrics for {ebal} version 0.2.1},
  year      = {2026},
  publisher = {HJJB, LLC},
  url       = {https://r-observatory.thecoatlessprofessor.com/packages/ebal},
  note      = {Data set. Data release v2026-08-05}
}

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ebal version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-08-05. https://r-observatory.thecoatlessprofessor.com/packages/ebal

RIS

TY  - DATA
AU  - Balamuta, James Joseph
TI  - R Observatory: Metrics for ebal version 0.2.1
PY  - 2026
PB  - HJJB, LLC
N1  - Data release v2026-08-05
UR  - https://r-observatory.thecoatlessprofessor.com/packages/ebal
ER  - 

In prose

These package metrics were obtained from the R Observatory (Balamuta, 2026), data release v2026-08-05, https://r-observatory.thecoatlessprofessor.com/packages/ebal.

Bound to data release v2026-08-05, which is what makes the numbers on this page reproducible. See how to cite.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy