Skip to contents

For each non-reference treatment level, matches treated units to the reference group via the chosen binary matching method.

Usage

morie_matching_multi_treatment(
  data,
  treatment,
  covariates,
  reference_group = NULL,
  method = "nearest_neighbor"
)

Arguments

data

Data frame.

treatment

Treatment column (may take more than two levels).

covariates

Character vector of covariates.

reference_group

Optional reference level (defaults to the modal level).

method

One of "nearest_neighbor" or "mahalanobis".

Value

A named list whose keys are treatment levels and whose values are morie_match_result objects.

Examples

if (FALSE) { # \dontrun{
morie_matching_multi_treatment(df, "treat3", c("x1", "x2"))
} # }