View source: R/matched_set_obj.R
matched_set | R Documentation |
matched_set
is a constructor for the matched.set
class.
matched_set(matchedsets, id, t, L, t.var, id.var, treatment.var)
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 |
Users should never need to use this function by itself. See below for more about matched.set
objects.
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 |
Adam Rauh <amrauh@umich..edu>, In Song Kim <insong@mit.edu>, Erik Wang <haixiao@Princeton.edu>, and Kosuke Imai <imai@harvard.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.