Skip to contents

Thin wrapper around MatchIt::matchit(method = "optimal"), which calls optmatch.

Usage

morie_matching_optimal_pair(
  data,
  treatment,
  covariates,
  distance = "propensity",
  ps = NULL
)

Arguments

data

Data frame.

treatment

Binary treatment column name.

covariates

Character vector of covariates.

distance

One of "propensity" or "mahalanobis".

ps

Optional pre-computed propensity scores (ignored; retained for back-compat).

Value

A list of class morie_match_result.

Examples

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