Skip to contents

Routes to the native balance engine (morie_matching_balance): standardized mean differences and variance ratios before/after weighting, plus the effective sample size.

Usage

morie_weight_diagnostic(w, data, treatment, covariates)

Arguments

w

A morie_weight object.

data, treatment, covariates

The inputs the weights were built from.

Value

A data.frame of balance statistics with attribute ess.

Examples

d <- data.frame(t = rbinom(100, 1, 0.4), x = rnorm(100))
morie_weight_diagnostic(morie_weight_ps(d, "t", "x"), d, "t", "x")
#>   covariate mean_treated mean_control        smd    abs_smd variance_ratio
#> 1         x  -0.02175989  -0.03642834 0.01494084 0.01494084       1.311567
#>     ks_stat ks_p_value
#> 1 0.1916667  0.3143146