make_analysis_set {nncc} | R Documentation |
Make analysis set
Description
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.
Usage
make_analysis_set(
var,
stratified_data,
data,
maxdist = 0,
maxcontrols = 20,
silent = FALSE
)
Arguments
var |
Character of current exposure variable in
|
stratified_data |
Stratified dataset, see |
data |
Original case control data |
maxdist |
Reject any controls more than maxdist from their case |
maxcontrols |
Maximum number of controls to keep per strata |
silent |
Suppress exposure info useful for *apply/loop implementations |
Details
For more information, please refer to the vignette using
browseVignettes("nncc")
.
Value
A list of data frames with the length
of number of exposures.
[Package nncc version 2.0.0 Index]