Learn R Programming

fastR (version 0.10.3)

deathPenalty: Death Penalty and Race

Description

A famous example of Simpson's paradox.

Arguments

Format

A data frame with 326 observations. The factors are coded more succinctly in deathPen, but otherwise the data are the same.

  • DeathPenalty a factor with levels Yes No

  • Penalty a factor with levels Death Not

  • Victim a factor with levels Black White (or Bl Wh)

  • Defendant a factor with levels Black White (or Bl Wh)

Examples

Run this code
# NOT RUN {
xtabs(~Defendant+Penalty,deathPenalty)
xtabs(~Defendant+Victim+Penalty,deathPenalty)

# }

Run the code above in your browser using DataLab