Ensures that a control retained in a data frame is used once and remove strata without any case or any control. In this process, priority is first given to the smallest strata then smallest distance if a control is matched to multiple cases (i.e., that control exists in multiple strata).
finalize_data(dfs, filter = TRUE, filterdata = NULL)A list of data frames
A list of data frames generated by
make_analysis_sets
Filter statement to apply
Extra data to left join to the dfs for filtering
For more information, please refer to the vignette using
browseVignettes("nncc").