Description Usage Arguments Value Author(s) References
ncc_selection_prob
calculates the probability of selection into a
nested case control study. Given a nested case control study with
time of entry, time of exit, exit status, and the number of potentially
eligible controls for each case from the full cohort, the probability of
being selected as a control for one or more cases is calculated.
1 2 |
entry |
time of entry to follow-up |
exit |
time of exit from follow-up |
fail |
indicator of status on exit from follow-up (censored=0, fail=1) |
origin |
the origin of the analysis time-scale. For instance, date of birth, if age is the desired time-scale. |
controls |
the number of controls that were sampled for each failure |
match |
a list of categorical variables that were matched on |
caseset |
a caseset identifier (common within matched case-control sets) |
elig_controls |
an integer indicating the number of individuals from
the full cohort who were eligible be selected as a control for each case.
This should be constant within |
data |
a |
silent |
if |
A data.frame
comprising the original data, with a variable indicating
the probability of being selected in the nested case control sample (ncc_pr)
David C Muller
Samuelsen S. O. (1997). A psudolikelihood approach to analysis of nested case-control studies. Biometrika, 84(2), 379-394. doi:10.1093/biomet/84.2.379
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.