Thin wrapper around morie_matching_balance returning only the
data-frame component. See cobalt::bal.tab
for an alternative with categorical-variable support.
Examples
# \donttest{
set.seed(1)
df <- data.frame(y = rnorm(200), d = rbinom(200, 1, 0.4),
x1 = rnorm(200), x2 = rnorm(200))
morie_matching_balance_table(df, "d", c("x1", "x2"))
#> covariate mean_treated mean_control smd abs_smd variance_ratio
#> 1 x1 0.061404608 -0.03624282 0.08978223 0.08978223 1.1009337
#> 2 x2 0.003342348 -0.21859021 0.21729769 0.21729769 0.9771198
#> ks_stat ks_p_value
#> 1 0.1085342 0.5597990
#> 2 0.1498322 0.1941478
# }
