Comprehensive balance assessment for matched treatment and control groups including standardized mean differences, variance ratios, and distributional balance tests.
Usage
assess_balance(
matched_data,
treatment_var = "is_treated",
balance_variables,
weight_var = NULL,
thresholds = list(mean_diff = 0.1, variance_ratio = 2)
)Arguments
- matched_data
Data.table with matched observations
- treatment_var
Character. Name of treatment indicator variable. Default: "is_treated"
- balance_variables
Character vector. Variables to assess balance for
- weight_var
Character. Name of weight variable (for weighted balance). Default: NULL
- thresholds
Named list. Balance thresholds: list(mean_diff = 0.1, variance_ratio = 2)