σ StatsDoge Causal inference workflows
7
σ Building block · used in 1 workflow

Matching for causal inference — matchit()

ATT MatchingPropensity Score
Source MatchIt — Ho, Imai, King & Stuart
Summary by StatsDoge

Nearest-neighbor, optimal, full, and genetic matching to preprocess data so treated and control groups are comparable before estimating effects.

You're looking at a building block — one of the estimators a workflow uses inside its pipeline. You reached it from a workflow step; it's used in 1 workflow (listed below).

⚠️ Unofficial community write-up of MatchIt. This account is not affiliated with the authors; it summarizes the public documentation for demonstration. All credit & copyright belong to the original authors.

What it does

Selects/weights control units to match the treated on covariates (or the propensity score), so the downstream effect estimate is far less model-dependent. Matching is the design stage — done without ever looking at the outcome.

library(MatchIt)
m <- matchit(treat ~ age + educ + race + re74, data = lalonde,
             method = "nearest", distance = "glm")
summary(m)

Used in these workflows (1)

Discussion (0)

  • No comments yet — start the conversation.