cat_reg {discovr} | R Documentation |
Cat regression data
Description
A dataset from Field, A. P. (2026). Discovering statistics using R and RStudio (2nd ed.). London: Sage.
Usage
cat_reg
Format
A tibble with 200 rows and 7 variables.
Details
Fictional data illustrating how the chi-square test is a linear model. It's about line dancing cats. The object contains the following variables:
-
reward: whether the cat was trained using food (0) of affection (1) as a reward
-
dance: Whether the cat danced (1) or not (0)
-
interaction: the interaction of dance and reward (i.e. dance multiplied by reward)
-
observed: the observed frequency for the combination of dance and reward
-
expected: the expected frequency for the combination of dance and reward
-
lmobserved: the natural logarithm of the observed frequency for the combination of dance and reward
-
lmexpected: the natural logarithm of the expected frequency for the combination of dance and reward
Source
www.discovr.rocks/csv/cat_regression.csv