Set a maximum number of controls that are allowed to be matched to a case; ensure that matched case-control pairs have a distance closer than the predefined threshold; merge strata sharing same controls.
make_analysis_set(
var,
stratified_data,
data,
maxdist = 0,
maxcontrols = 20,
silent = FALSE
)A list of data frames with the length of number of exposures.
Character of current exposure variable in
make_analysis_sets
Stratified dataset, see make_knn_strata
Original case control data
Reject any controls more than maxdist from their case
Maximum number of controls to keep per strata
Suppress exposure info useful for *apply/loop implementations
For more information, please refer to the vignette using
browseVignettes("nncc").