Gary King Homepage Previous: Preprocessing via Matching Up: Preprocessing via Matching Next: Examples

Quick Overview

The main command matchit() implements the matching procedures. A general syntax is:

> m.out <- matchit(treat ~ x1 + x2, data = mydata)
where treat is the dichotomous treatment variable, and x1 and x2 are pre-treatment covariates, all of which are contained in the data frame mydata. The dependent variable (or variables) may be included in mydata for convenience but is never used by MATCHIT or included in the formula. This command creates the MATCHIT object called m.out. Name the output object to see a quick summary of the results:
> m.out



Gary King 2010-12-11