Matched case-control study | R Documentation |
Two different datasets for the same matched case-control study. VC1to6 has 1 case : varying number of controls (from 1 to 6) whereas VC1to1 has the number of control reduced to 1 for each case.
data(VC1to1) data(VC1to6)
A data frame with the following 5 variables.
matset
a numeric vector indicating matched set number from 1 to 26
case
a numeric vector: 1=case, 0=control
smoking
a numeric vector: 1=smoker, 0=non-smoker
rubber
a numeric vector: 1=exposed, 0=never exposed to rubber industry
alcohol
a numeric vector: 1=drinker, 0=non-drinker
Chongsuvivatwong, V. 1990 A case-control study of esophageal cancer in Southern Thailand. J Gastro Hep 5:391–394.
'infert' in the datasets package.
data(VC1to6) .data <- VC1to6 des(.data) with(.data, matchTab(case, alcohol, matset)) rm(.data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.