matchedsets: a list of treated units and matched control units. Each element in the list should be a vector of control unit ids.
id: A vector containing the ids of treated units
t: A vector containing the times of treatment for treated units.
L: integer specifying the length of the lag window used in matching
t.var: string specifying the time variable
id.var: string specifying the unit id variable
treatment.var: 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.
Returns
matched.set objects have additional attributes. These reflect the specified parameters when using the PanelMatch function: - lag: 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.
t.var: time variable name, represented as a character/string
id.var: unit id variable name, represented as a character/string
treatment.var: treatment variable name, represented as a character/string
class: class of the object: should always be "matched.set"
refinement.method: method used to refine and/or weight the control units in each set.
covs.formula: One sided formula indicating which variables should be used for matching and refinement
match.missing: Logical variable indicating whether or not units should be matched on the patterns of missingness in their treatment histories
max.match.size: Maximum size of the matched sets after refinement. This argument only affects results when using a matching method