Skip to contents

Thin wrapper around MatchIt::matchit(method = "cem"), which in turn calls the cem package.

Usage

morie_matching_cem(data, treatment, covariates, n_bins = 5L)

Arguments

data

Data frame.

treatment

Binary treatment column name.

covariates

Character vector of covariates.

n_bins

Either a single integer (applied to every covariate) or a named list mapping covariate name to the number of bins (forwarded as cutpoints).

Value

A list of class morie_match_result.

References

Iacus, S. M., King, G., & Porro, G. (2012). Causal inference without balance checking: Coarsened exact matching. Political Analysis, 20(1), 1–24.

Examples

if (FALSE) { # \dontrun{
morie_matching_cem(df, "d", c("x1", "x2"), n_bins = 5)
} # }