Description Usage Arguments Value Examples
View source: R/nestedCC_function.R
Given a data frame with cohort data, this function will return a a randomly sampled nested case-control design
1 |
cohort |
Data frame with cohort data |
exit |
Variable in data frame with event/censoring times, specified as position (integer) or name (character) |
event |
Integer variable in cohort indicating censoring (0) or event (>0) |
match |
Optional vector of variables in cohort that cases and controls will be matched on |
k |
Number of controls per case; default 1 |
seed |
Optional seed for random number generation |
A data frame with rows from the input data (possibly sampled repeatedly) and an extra column 'matchSet' indicating matched sets of cases and controls.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.