View source: R/make_analysis_set.R
make_analysis_set | R Documentation |
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
)
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 |
For more information, please refer to the vignette using
browseVignettes("nncc")
.
A list of data frames with the length
of number of exposures.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.