Learn R Programming

MatchIt (version 3.0.2)

match.data: Output Matched Data Sets

Description

match.data outputs matched data sets from matchit().

Usage

match.data(object, group="all", distance = "distance",
weights = "weights", subclass = "subclass")

Arguments

object

The output object from matchit. This is a required input.

group

This argument specifies for which matched group the user wants to extract the data. Available options are "all" (all matched units), "treat" (matched units in the treatment group), and "control" (matched units in the control group). The default is "all".

distance

This argument specifies the variable name used to store the distance measure. The default is "distance".

weights

This argument specifies the variable name used to store the resulting weights from matching. The default is "weights".

subclass

This argument specifies the variable name used to store the subclass indicator. The default is "subclass".

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 distance, weights, and subclass. The variable distance gives the estimated distance measure, and weights gives the weights for each unit, generated in the matching procedure. The variable subclass gives the subclass index for each unit (if applicable). See the http://gking.harvard.edu/matchit/ for the complete documentation and type demo(match.data) at the R prompt to see a demonstration of the code.

See Also

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