Run the standard setup from the Student Overview before starting
this assignment. This assignment uses the full cam
dataset.
cam$t_change <- cam$t3 - cam$t1
cam$htt_change <- cam$htt2 - cam$htt1This is a capstone: instead of being told which test to run, you will choose a research question, decide for yourself which analysis fits it, run that analysis, and defend your choice. This assignment is designed to also work as a final project or final exam.
Unlike Assignments 1–5, you will not be told which test to use. Look at the variables involved in your chosen question and reason it through the same way the earlier Cambridge worksheet you may have seen before did: “Look at the variables and consider the tests that you know.”
Pick one of the following (your instructor may assign a specific one, or let you choose):
A. Mood and outcome. Participants reported their
mood before and immediately after the contest. Does mood change
differently depending on whether someone won or lost? (Variables:
htt1, htt2, win)
B. Aggression and hormone change. During 1v1
matches, participants set a noise-blast punishment for their opponent
before each round — a behavioral measure of aggression. Is that
aggression related to how much someone’s testosterone changed over the
session? (Variables: mean_aggression,
t_change — 1v1 matches only, since aggression wasn’t
recorded per-individual in 2v2)
C. Personality and hormone response. Does a person’s
level of Behavioral Activation (BAS, a personality trait related to
reward-seeking) predict how much their testosterone changes after
winning versus losing? (Variables: bas_all,
win, t_change)
D. Aggression by outcome or sex. Within 1v1 matches,
does aggression differ between winners and losers, or between men and
women? (Variables: mean_aggression, win or
sex — 1v1 matches only)
E. A different hormone’s time course. Assignment 4
modeled testosterone’s response to win/loss × match type × sex over
time. Does estradiol or progesterone show a similar — or different —
pattern? (Variables: e1–e3 or
p1–p3, win, match,
sex, reshaped to long format)
F. Digit ratio, revisited. Assignment 3 correlated
left-hand digit ratio with baseline testosterone. Does the same
relationship hold for the right hand? Does it look different in men
compared to women? (Variables: rratio, t1,
sex)
Complete this section BEFORE opening R or running any code. Once you have seen the output, this step cannot be done honestly.
Researchers who write down predictions before analyzing data avoid HARKing (Hypothesizing After Results are Known) — presenting a finding as if it were predicted when it was actually discovered after the fact.
P1. Your question. Which question (A–F) did you choose, and why does it interest you?
P2. Your prediction. State your prediction in plain language — direction and rough strength (e.g., “small,” “a clear difference,” “no relationship”). What theory or prior finding (from this course, the Cambridge/Humboldt paper, or elsewhere) is your prediction based on?
P3. Your test. Before running anything, decide which statistical test fits your question. Answer: a. Is the outcome variable quantitative or categorical? b. Are you comparing groups, testing a relationship between two quantitative variables, testing a relationship over time, or predicting an outcome from multiple predictors? c. Which test (t-test, correlation, ANOVA, mixed ANOVA, regression) fits, and why?
P4. Reflection (complete AFTER you have run the analysis). a. Was your prediction correct? b. Was your chosen test the right one, in hindsight? Would you choose differently now? c. What does this exercise suggest about why pre-registering an analysis plan matters in real research?
Produce at least one plot appropriate to your variables (boxplot, scatterplot, or a time-course line plot as in Assignment 4) before running any inferential test.
Run the test you selected in P3. Show your code and full output.
Report the effect size appropriate to your test, regardless of whether the result is statistically significant:
| Test | Effect size |
|---|---|
| t-test | Cohen’s d |
| Correlation | r |
| ANOVA / mixed ANOVA | η²_G |
| Regression | R² (and the coefficient for any interaction term) |
Write an APA-style results paragraph: report the test statistic, degrees of freedom, p-value, effect size, and a plain-language interpretation.
win), and which were only measured (like
bas_all, mean_aggression, or
rratio)? What does that distinction mean for any causal
claim you’re tempted to make?Write a paragraph that includes: