
Standardised mean difference for covariate balance
Source:R/panelspatial.R
morie_covariate_balance.RdFor each column of x the standardised mean difference is
\((\bar\mu_t - \bar\mu_c) / \sqrt{(s_t^2 + s_c^2)/2}\), the
difference in group means in units of the pooled within-group spread.
The pooling is a plain average of the two variances rather than the
sample-size-weighted one, so the denominator does not move when
weighting changes the effective group sizes.
Value
Named list with smd, max_smd, imbalanced,
n_imbalanced, balanced, threshold,
n_treated, n_control, method.
Details
No p-value is reported. Austin's argument is that a hypothesis test of balance confounds imbalance with sample size, so the convention is to compare \(|SMD|\) against a fixed threshold, 0.1 by default.
Mirrors morie.fn.causbalt on the Python side.