Routes to the shared native entropy-balancing solver
(smallstats_native.R): control units are reweighted so their
covariate means match the treated means exactly (ATT).
Examples
set.seed(1)
d <- data.frame(t = rbinom(100, 1, 0.4), x = rnorm(100))
morie_weight_entropy(d, "t", "x")
#> morie_weight: entropy balancing (Hainmueller 2012) (estimand ATT)
#> n = 100 ESS = 100.0 weight range [0.927, 1.061]
