Learn R Programming

MatchIt (version 1.0-1)

match.data: Output matched data sets

Description

The code match.data creates output data sets from a matchit matching algorithm.

Usage

match.data <- match.data(object, group="all")

Arguments

object
(required). Stored output from matchit.
group
Which units to output. "all" (default) gives all matched units (treated and control), "treat" gives just the matched treated units, and "control" gives just the matched control units.

Value

  • Returns a subset of the original data set sent to matchit, with just the matched units. The data set also contains the additional variables psclass, pscore, and psweights. The variable psclass gives the subclass index for each unit (if applicable). The variable pscore gives the propensity scores, and psweights gives the weights for each unit, generated in the matching procedure. See the matchit documentation for more details.

See Also

Please use help.matchit to access the matchit reference manual. The complete document is available online at http://gking.harvard.edu/matchit.