enforce_lead_restrictions function

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)

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)

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.

Returns

matched.set object with the matched sets that meet the conditions

  • Maintainer: In Song Kim
  • License: GPL (>= 3)
  • Last published: 2025-03-03

Useful links