Skip to content

Hierarchically Regularized Entropy Balancing

0packages depend
6.3Kdownloads / year
72.3%test coverage
13/13flavors OK

Overview

About

Implements hierarchically regularized entropy balancing proposed by Xu and Yang (2022) doi:10.1017/pan.2022.12. The method adjusts the covariate distributions of the control group to match those of the treatment group. 'hbal' automatically expands the covariate space to include higher order terms and uses cross-validation to select variable penalties for the balancing conditions.

Install

Health

CRAN checks
13OK
Slowest check: 4.2 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-24
  • WARNING11 OK, 2 WARNING2026-09-17
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
  • NOTE12 OK, 2 NOTE2026-04-22
  • ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.3.0
README· In the repository, left out of the releaseVignettesNoNEWS· In the repository, left out of the releaseCitation fileNoWebsiteYes
Help pages
14includes a package overview page
Examples that run
100%3 run in a plain check
Exported functions with examples
75%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
36%

Downloads

6.3K
CRAN downloads in the past year
Rank #6,609 · ~17/day · ~524/mo
Daily download trend is not available in this view yet.
52130 days
1.3K90 days
6.3K1 year
Compare downloads with other packages →
Also on360 r2u5 autocran

Repository

12Stars
6Forks
0Open issues
0Open PRs
3Releases
148Commits
5Commit identities
148 commits · Last activity 2026-09-18
Responsiveness
How these are sampled
PRs merged (all time)
80%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Forks over time

2026-07-14 · 62026-09-20 · 6
PracticesBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/xuyiqing/hbal on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-09-15
    Pull request it wrote: opened by a project member
    Commits: at least 24 crediting it in the message
Models named in its commits
  • Claude Opus 515 commits · Sep 2026
  • Claude Fable 5.17 commits · Sep 2026
  • Claude Sonnet 52 commits · Sep 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing hbal adds 35 packages (16 with compiled code, 37 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, glmnet 2.7 MB.

Depends (1)
R >= 3.6.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 1.2.8 (2023)
Releases (4)

Pick two releases to compare their code metrics.

  • 1.3.0Latest
    record
    2026-09-17 · current release · diff ↗ ·
    added 1 export
    balanceData
  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.15
    record
    2025-09-10 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.12
    record
    2024-01-10 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2.8
    record
    2023-01-24
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-01-24
Total releases
4 / 3 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6.0
Bundled data
139 KB / 1 file
Download size
179 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("hbal")
Xu, Y., & Yang, E. (2026). hbal: Hierarchically Regularized Entropy Balancing (Version 1.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.hbal

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for hbal version 1.3.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

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