enforce_lead_restrictions {PanelMatch} | R Documentation |
enforce_lead_restrictions check treatment and control units for treatment reversion in the lead window. Treated units must stay treated and control units must stay in control (according to the specified qoi)
Description
enforce_lead_restrictions check treatment and control units for treatment reversion in the lead window. Treated units must stay treated and control units must stay in control (according to the specified qoi)
Usage
enforce_lead_restrictions(
matched_sets,
ordered.data,
max.lead,
t.var,
id.var,
treatment.var
)
Arguments
matched_sets |
matched.set object |
ordered.data |
parsed data as data.frame object |
max.lead |
The largest lead value (e.g. the biggest F) |
t.var |
string specifying the time variable |
id.var |
string specifying the unit id variable |
treatment.var |
string specifying the treatment variable. |
Value
matched.set object with the matched sets that meet the conditions
[Package PanelMatch version 2.2.0 Index]