angry_pigs {discovr} | R Documentation |
Video games and aggression example 1
Description
A dataset from Field, A. P. (2026). Discovering statistics using R and RStudio (2nd ed.). London: Sage.
Usage
angry_pigs
Format
A tibble with 336 rows and 4 variables
Details
Angry Birds is a video game in which you fire birds at pigs. A (fabricated) study was set up in which people played Angry Birds and a control game (Tetris) over a 2-year period (1 year per game). They were put in a pen of pigs for a day before the study, and after 1 month, 6 months and 12 months. Their violent acts towards the pigs were counted. The (fictional) data contains
-
id: participant ID
-
game: whether the participant had been assigned to play angry pigs or tetris
-
time: the time at which aggressive acts were measured (Baseline, 1 month, 6 months and 12 months)
-
aggression: the number of aggressive acts towards pigs
Source
www.discovr.rocks/csv/speed_date.csv