Learn R Programming

fastR2 (version 0.2.0)

DeathPenalty: Death Penalty and Race

Description

A famous example of Simpson's paradox.

Arguments

Format

A data frame with 326 observations.

  • death a factor with levels Yes No

  • penalty a factor with levels death other

  • victim a factor with levels Bl Wh)

  • Defendant a factor with levels Bl Wh

Examples

Run this code
# NOT RUN {
tally(penalty ~ defendant, data = DeathPenalty)
tally(penalty ~ defendant + victim, data = DeathPenalty)

# }

Run the code above in your browser using DataLab