
Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
Users should never need to use this function by itself. See below for more about matched.set
objects.
matched_set(matchedsets, id, t, L, t.var, id.var, treatment.var)
matched.set
objects have additional attributes. These reflect the specified parameters when using the PanelMatch
function:
an integer value indicating the length of treatment history to be used for matching. Treated and control units are matched based on whether or not they have exactly matching treatment histories in the lag window.
time variable name, represented as a character/string
unit id variable name, represented as a character/string
treatment variable name, represented as a character/string
class of the object: should always be "matched.set"
method used to refine and/or weight the control units in each set.
One sided formula indicating which variables should be used for matching and refinement
Logical variable indicating whether or not units should be matched on the patterns of missingness in their treatment histories
Maximum size of the matched sets after refinement. This argument only affects results when using a matching method
a list of treated units and matched control units. Each element in the list should be a vector of control unit ids.
A vector containing the ids of treated units
A vector containing the times of treatment for treated units.
integer specifying the length of the lag window used in matching
string specifying the time variable
string specifying the unit id variable
string specifying the treatment variable.
The constructor function returns a matched.set
object.
matched.set
objects are a modified list. Each element in the list is a vector of ids
corresponding to the control unit ids in a matched set.
Additionally, these vectors might have additional attributes -- "weights". These correspond to the
weights assigned to each control unit,
as determined by the specified refinement method.
Each element in the list also has a name, which corresponds to the unit id of the treated unit and time of treatment,
concatenated together and separated by a period. matched.set
objects also have a number of
methods defined: summary
, plot
, and `[`
. matched.set
objects can be modified manually
as long as these conventions (and conventions about other attributes) are maintained. It is important to note that matched.set
objects
are distinct from PanelMatch
objects. matched.set
objects are often contained within PanelMatch
objects.
Adam Rauh <amrauh@umich..edu>, In Song Kim <insong@mit.edu>, Erik Wang <haixiao@Princeton.edu>, and Kosuke Imai <imai@harvard.edu>