clean_leads Function to check the lead windows in treated and control units for missing outcome data. If data is missing, remove those units from matched sets.
clean_leads(matched_sets, ordered.data, max.lead, t.var, id.var, outcome.var)
a cleaned/filtered matched.set object
matched.set object contained pre-filtered matched sets
data.frame object to be checked for missing data. This should have been passed through data preparation functions already.
Integer specifying the biggest value of the lead window.
string specifying the time id variable
string specifying the unit id variable
string specifying the outcome variable.