Subclassification (stratification) on the propensity score
Source:R/matching.R
morie_matching_subclassify.RdThin wrapper around MatchIt::matchit(method = "subclass") that
reports within-stratum sample sizes and PS ranges, preserving the
rmorie return shape (data_with_strata + stratum_effects).
Value
A list with components data_with_strata (the matched
data augmented with ._stratum and ._ps columns) and
stratum_effects (per-stratum sample sizes and PS ranges).
Examples
if (FALSE) { # \dontrun{
morie_matching_subclassify(df, "d", c("x1", "x2"), n_strata = 5)
} # }