Skip to contents

Estimates the Average Treatment effect on the Treated using paired differences from a matched sample. Uses the explicit _matched suffix to distinguish it from the IPW estimator morie_estimate_att in causal.R.

Usage

morie_matching_att_matched(
  data,
  outcome,
  treatment,
  match_pairs,
  weights = NULL,
  alpha = 0.05
)

Arguments

data

Data frame.

outcome

Outcome column name.

treatment

Binary treatment column name.

match_pairs

Data frame with columns treated_idx and control_idx.

weights

Optional column of matching weights.

alpha

Significance level for confidence intervals.

Value

A list of class morie_te_result.

Examples

if (FALSE) { # \dontrun{
res <- morie_matching_nearest_neighbor(df, "d", c("x1", "x2"))
morie_matching_att_matched(df, "y", "d", res$match_pairs)
} # }