Skip to contents

Finds the largest matched sample with maximum absolute SMD below balance_threshold. Uses an iterative caliper-tightening heuristic over morie_matching_nearest_neighbor; for an exact mixed-integer-programming alternative see designmatch::cardmatch.

Usage

morie_matching_cardinality(
  data,
  treatment,
  covariates,
  balance_threshold = 0.1,
  ps = NULL
)

Arguments

data

Data frame.

treatment

Binary treatment column name.

covariates

Character vector of covariates.

balance_threshold

Maximum absolute SMD tolerated (default 0.1).

ps

Optional pre-computed propensity scores.

Value

A list of class morie_match_result.

References

Zubizarreta, J. R. (2012). Using mixed integer programming for matching in an observational study of kidney failure after surgery. JASA, 107(500), 1360–1371.

Examples

if (FALSE) { # \dontrun{
morie_matching_cardinality(df, "d", c("x1", "x2"),
                           balance_threshold = 0.1)
} # }