clean_leads {PanelMatch} | R Documentation |
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.
Description
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.
Usage
clean_leads(matched_sets, ordered.data, max.lead, t.var, id.var, outcome.var)
Arguments
matched_sets |
matched.set object contained pre-filtered matched sets |
ordered.data |
data.frame object to be checked for missing data. This should have been passed through data preparation functions already. |
max.lead |
Integer specifying the biggest value of the lead window. |
t.var |
string specifying the time id variable |
id.var |
string specifying the unit id variable |
outcome.var |
string specifying the outcome variable. |
Value
a cleaned/filtered matched.set object
[Package PanelMatch version 2.2.0 Index]