demo/exact.R

###
### An Example Script for Exact Matching
###

## laod the Lalonde data
data(lalonde)

## exact matching
m.out <- matchit(treat ~ educ + black + hispan, data = lalonde,
                 method = "exact")
user.prompt()

## print a short summary
print(m.out)
user.prompt()

## balance diagnostics through statistics
print(summary(m.out, covariates = T))
itpir/MatchIt documentation built on May 18, 2019, 5:52 a.m.