A dataset to demonstrate the Simpson's Paradox.

simpson

Format

A data frame with 300 rows and 3 variables:

performance

Student's change in performance at school.

happiness

Participant's change in happiness

group

Group a participant belongs to, i.e. Teacher, Student, or Parent

Source

Dataset created with correlation::simulate_simpson()