match.data: Output Matched Data Sets

Description Usage Arguments Value Author(s) See Also

View source: R/match.data.R

Description

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

Usage

1
2
  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.

Author(s)

Daniel Ho daniel.ho@yale.edu; Kosuke Imai kimai@princeton.edu; Gary King king@harvard.edu; Elizabeth Stuart estuart@jhsph.edu

See Also

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


DanRunfola/SimTests documentation built on May 6, 2019, 1:23 p.m.