match.data
outputs matched data sets from
matchit()
.
match.data(object, group="all", distance = "distance",
weights = "weights", subclass = "subclass")
The output object from matchit
. This is
a required input.
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"
.
This argument specifies the variable name used to
store the distance measure. The default is "distance"
.
This argument specifies the variable name used to store
the resulting weights from matching. The default is "weights"
.
This argument specifies the variable name used to store the
subclass indicator. The default is "subclass"
.
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.
Please use help.matchit
to access the matchit reference
manual. The complete document is available online at
http://gking.harvard.edu/matchit.