cat_reg | R Documentation |
A dataset from Field, A. P. (2023). Discovering statistics using R and RStudio (2nd ed.). London: Sage.
cat_reg
A tibble with 200 rows and 7 variables.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.