Package: ebal Type: Package Title: Entropy Reweighting to Create Balanced Samples Version: 0.3-0 Date: 2026-05-04 Authors@R: c( person("Jens", "Hainmueller", email = "jhain@stanford.edu", role = c("aut", "cre")), person("Apoorva", "Lal", email = "lal.apoorva@gmail.com", role = "aut", comment = "torch-based autodiff solver (R/ebalance_autodiff.R)")) Description: Implements entropy balancing, a data preprocessing procedure described in Hainmueller (2012, ) 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. License: GPL (>= 2) Imports: graphics, methods, stats Suggests: testthat (>= 3.0.0), knitr, rmarkdown, torch, ggplot2, generics, sandwich, lmtest, survey, withr Config/testthat/edition: 3 VignetteBuilder: knitr URL: https://web.stanford.edu/~jhain/, https://github.com/j-hai/ebal BugReports: https://github.com/j-hai/ebal/issues Encoding: UTF-8 Repository: https://j-hai.r-universe.dev Date/Publication: 2026-05-12 17:55:52 UTC RemoteUrl: https://github.com/j-hai/ebal RemoteRef: HEAD RemoteSha: fc85de575770205c1bb54527b2ac39ade1f2ba53 NeedsCompilation: no Packaged: 2026-06-11 06:33:55 UTC; root Author: Jens Hainmueller [aut, cre], Apoorva Lal [aut] (torch-based autodiff solver (R/ebalance_autodiff.R)) Maintainer: Jens Hainmueller