enforce_lead_restrictions: enforce_lead_restrictions check treatment and control units...

View source: R/enforce_lead_restrictions.R

enforce_lead_restrictionsR 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


PanelMatch documentation built on June 22, 2024, 10:32 a.m.