| alzheimer | R Documentation |
A case-control study of smoking and Alzheimer's disease.
alzheimer
A data frame with 538 observations on 3 variables.
smokinga factor with levels "None", "<10", "10-20" and
">20" (cigarettes per day).
diseasea factor with levels "Alzheimer", "Other dementias" and
"Other diagnoses".
gendera factor with levels "Female" and "Male".
Subjects with Alzheimer's disease are compared to two different control groups with respect to smoking history. The data are given in \bibcitet|salibhillier1997|Tab. 4.
*
## Spineplots
op <- par(no.readonly = TRUE) # save current settings
layout(matrix(1:2, ncol = 2))
spineplot(disease ~ smoking, data = alzheimer,
subset = gender == "Male", main = "Male")
spineplot(disease ~ smoking, data = alzheimer,
subset = gender == "Female", main = "Female")
par(op) # reset
## Asymptotic Cochran-Mantel-Haenszel test
cmh_test(disease ~ smoking | gender, data = alzheimer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.