This dataset comes from a real published study on hormones and competition (Oxford, Tiedtke, Ossmann, Özbe, & Schultheiss, 2017, PLOS ONE), conducted at Friedrich-Alexander University in Germany. Participants competed head-to-head on a computer task, either one-on-one (1v1) or as part of a two-person team (2v2), against a same-sex opponent. The outcome (win or lose) was secretly pre-assigned by the experimenters — participants believed the outcome depended on their performance. Saliva samples taken before and after the contest were assayed for four hormones: testosterone (T), estradiol (E), progesterone (P), and cortisol (C).
We will return to this same dataset across several chapters, the same way we returned to the Baby Dataset for Ch 3–24. Each time, you will use a different statistical tool to answer a different kind of research question about hormones, competition, and gender.
The goal is not simply to run R code. The goal is to practice the full statistical reasoning workflow:
Research question → variables → visualization → analysis choice → results → interpretation → limitations
How do hormones respond to winning and losing a competition, and does that response depend on gender, whether you compete alone or as part of a team, or your motivational disposition?
Different statistical methods help us answer different versions of this question:
The first three assignments in this sequence use only the 1v1 women portion of the dataset — the same subset an earlier version of this course worked with, and a manageable size for getting comfortable with the design. Assignment 4 expands to the full dataset: both sexes, both 1v1 and 2v2 competition, so we can test the actual paper’s between-group comparisons.
| Variable | Meaning | Type |
|---|---|---|
subject |
Participant ID | Identifier |
win |
Contest outcome: 0 = Loss, 1 = Win
(experimentally assigned, not earned) |
Categorical |
match |
Competition type: 1 = 1v1 (individual), 2
= 2v2 (team) |
Categorical |
sex |
Participant sex: 0 = Female, 1 = Male |
Categorical |
pill |
Oral contraceptive use (women only); 0 = no,
1 = yes |
Categorical |
group |
Three-level version of sex/pill: Man, NC Woman (naturally cycling), OC Woman (oral contraceptive) | Categorical |
age_at_testing |
Age in years | Quantitative |
height_cm, weight_kg |
Height and weight | Quantitative |
t1, t2, t3 |
Testosterone before, immediately after, and ~20 min after the contest | Quantitative (repeated) |
e1, e2, e3 |
Estradiol at the same three time points | Quantitative (repeated) |
p1, p2, p3 |
Progesterone at the same three time points | Quantitative (repeated) |
c1, c2, c3 |
Cortisol at the same three time points | Quantitative (repeated) |
htt1, htt2, htt3, htt4 |
Hedonic tone (mood) at four time points across the session | Quantitative (repeated) |
mean_aggression |
Average noise-blast volume set for the opponent across 10 rounds — a behavioral measure of aggression. Only available for 1v1 matches, not 2v2. | Quantitative |
zprepow, zpreaff |
Pre-contest implicit need for power / affiliation, from a picture-story writing task, adjusted for word count | Quantitative |
bis_all, bas_all |
Behavioral Inhibition / Activation System scores (personality) | Quantitative |
lratio, rratio |
Left/right hand 2D:4D digit ratio (a marker of prenatal hormone exposure) | Quantitative |
Hormone values are already transformed (square-root for testosterone, log for estradiol/progesterone/cortisol) to correct for skew, matching how they were analyzed in the original paper — you do not need to transform them yourself.
Every assignment in this sequence begins with the same setup. Run this at the top of every script before anything else.
# Load the dataset
cam <- read.csv("https://jkoxford-a11y.github.io/awesomesaucestats/data/cambridge_humboldt.csv")
# Label the design factors
cam$win <- factor(cam$win, levels = c(0, 1), labels = c("Loss", "Win"))
cam$match <- factor(cam$match, levels = c(1, 2), labels = c("1v1", "2v2"))
cam$sex <- factor(cam$sex, levels = c(0, 1), labels = c("Female", "Male"))
# Three-level group used in the original paper: men, naturally-cycling (NC)
# women, and oral-contraceptive (OC) women
cam$group <- factor(
ifelse(cam$sex == "Male", "Man",
ifelse(cam$pill == 1, "OC Woman", "NC Woman")),
levels = c("Man", "NC Woman", "OC Woman")
)Assignments 1–3 additionally subset to 1v1 women only:
cam_1v1w <- subset(cam, match == "1v1" & sex == "Female")See Assignment 4 for how the full dataset (all four match × sex groups) is used.
Unlike a real competition, win/Loss here
was secretly pre-determined by the experimenters — participants were led
to believe they had genuinely won or lost. This is actually a strength
for causal reasoning: because outcome was randomly assigned rather than
something participants achieved, any hormone difference between winners
and losers can be attributed to the outcome itself, not to some
pre-existing trait that made certain people more likely to win.
That said, other variables in this dataset — like pill,
sex, or zprepow — are not
experimentally assigned. Differences associated with those variables are
correlational, and the same causal cautions from the Baby Dataset apply:
consider confounding variables, measurement issues, sample size,
practical importance, and study design before drawing strong
conclusions.
Every analysis in this sequence reports an effect size. Effect sizes are reported regardless of whether a result is statistically significant — the magnitude of an effect matters whether or not it clears an arbitrary threshold.
| Analysis | Effect size to report |
|---|---|
| Correlation | r (already the effect size) |
| Independent t-test | Cohen’s d |
| Mixed ANOVA | η²_G (generalized eta-squared) |
| Multiple regression | R², adjusted R² |
Good uses of AI:
Poor uses of AI:
You are responsible for identifying the variables, choosing the analysis, interpreting the output, and explaining what can and cannot be concluded.
Each Cambridge/Humboldt assignment follows this structure: