
Entropy balancing weights (Hainmueller, 2012)
Source:R/matching.R
morie_matching_entropy_balance.RdThin wrapper around WeightIt::weightit(method = "ebal") (or
ebal::ebalance if WeightIt is unavailable). Computes
weights for the control group so that the weighted moments of the
covariates match those of the treated group.
Usage
morie_matching_entropy_balance(
data,
treatment,
covariates,
max_moment = 1L,
max_iter = 500L,
tol = 1e-06
)Value
A numeric vector of weights aligned to the rows of data
after dropping NAs. Treated units receive weight 1.