Skip to contents

Reports standardised mean differences (SMD), variance ratios, and Kolmogorov-Smirnov statistics for each covariate. For a richer covariate-balance report (including continuous + categorical handling and Love-plot rendering), see cobalt::bal.tab / cobalt::love.plot.

Usage

morie_matching_balance(
  data,
  treatment,
  covariates,
  weights = NULL,
  threshold = 0.1
)

Arguments

data

Data frame.

treatment

Binary treatment column name.

covariates

Character vector of covariates.

weights

Optional column name of matching / weighting weights.

threshold

Absolute-SMD threshold for the balanced flag.

Value

A list of class morie_balance_result with balance_table (a data frame) and scalar summaries overall_balance, max_smd, balanced.

Examples

if (FALSE) { # \dontrun{
morie_matching_balance(df, "d", c("x1", "x2"))
} # }