lwd_refinement master function that performs refinement with listwise deletion = TRUE
lwd_refinement(
msets,
global.data,
treated.ts,
treated.ids,
lag,
time.id,
unit.id,
lead,
refinement.method,
treatment,
size.match,
match.missing,
covs.formula,
verbose,
outcome.var,
e.sets,
use.diag.covmat
)
matched.set object with refined matched sets.
data.frame. needs to be fully prepped/parsed data set that is internally balanced, full of NAs likely
vector of the times of treatment for treated observations
vector of unit identifiers of treated observations
string specifying
vector of lead values
string specifying refinement method
string specifying treatment variable
maximum number of units to give non-zero weight to when using matching refinement method
logical. indicates whether or not to allow the package to match units on missingness in treatment history
see PanelMatch documentation for descriptions
see PanelMatch documentation for descriptions
string specifying outcome variable
empty sets (treated observations with no matched controls)
see PanelMatch documentation for descriptions