Learn R Programming

evidence (version 0.8.10)

Clin: Made-up data to illustrate Simpson's paradox.

Description

These made-up data illustrate the discrete form (contingency table form) of Simpson's paradox.

Usage

data(Clin)

Arguments

Format

A three-dimensional array of frequencies with:

rows indicating "outcome" (either "death" or "cured"),

columns indicating "male" (either "Yes" or "No"), and

layers indicating "clinic" (either "A" or "B").

Examples

Run this code
# NOT RUN {
data(Clin)
Clin[1,,]
prop.table(Clin[1,,], 2)
# }

Run the code above in your browser using DataLab