Run the standard setup from the Student Overview before starting
this assignment. This assignment uses cam_1v1w, the
1v1-women subset.
# Drop the unused "Man" level so the grouping factor has exactly 2 levels
cam_1v1w$group <- droplevels(cam_1v1w$group)Do baseline hormones differ between naturally cycling (NC) women and women using oral contraceptives (OC)?
Oral contraceptives suppress the normal hormonal cycle, so this is a natural comparison for any hormone measured at baseline — before the competition even starts.
| Variable | Meaning | Type |
|---|---|---|
c1 |
Baseline cortisol | Quantitative outcome |
t1 |
Baseline testosterone | Quantitative outcome |
e1 |
Baseline estradiol | Quantitative outcome |
p1 |
Baseline progesterone | Quantitative outcome |
group |
NC Woman / OC Woman | Categorical grouping variable |
boxplot(c1 ~ group, data = cam_1v1w,
ylab = "Cortisol (transformed)",
main = "Baseline Cortisol by Contraceptive Group")
stripchart(c1 ~ group, data = cam_1v1w,
vertical = TRUE,
method = "jitter",
pch = 16,
add = TRUE)aggregate(c1 ~ group, data = cam_1v1w, FUN = mean, na.rm = TRUE)
aggregate(c1 ~ group, data = cam_1v1w, FUN = sd, na.rm = TRUE)
table(cam_1v1w$group)Null hypothesis: There is no difference in average baseline cortisol between NC and OC women.
Alternative hypothesis: There is a difference in average baseline cortisol between NC and OC women.
t.test(c1 ~ group, data = cam_1v1w)library(effsize)
cohen.d(c1 ~ group, data = cam_1v1w, na.rm = TRUE)Cohen’s d conventions: small ≈ 0.20, medium ≈ 0.50, large ≈ 0.80.
| Output value | Value |
|---|---|
| Mean baseline cortisol: NC group | |
| Mean baseline cortisol: OC group | |
| Difference between means | |
| t statistic | |
| degrees of freedom | |
| p-value | |
| 95% confidence interval for the difference | |
| Cohen’s d | |
| Effect size interpretation (small / medium / large) |
An independent-samples Welch t-test was used to compare baseline cortisol between naturally cycling women and women using oral contraceptives. The NC group had a mean baseline cortisol of ____ (SD = ____), whereas the OC group had a mean of ____ (SD = ____). The difference was [statistically significant / not statistically significant], t(____) = ____, p = ____. Cohen’s d = ____, indicating a [small / medium / large] effect.
Repeat the same workflow (visualize, describe, hypotheses, t-test,
Cohen’s d, interpret, report) for t1, e1, and
p1.
| Hormone | NC mean | OC mean | t | df | p | Cohen’s d |
|---|---|---|---|---|---|---|
Testosterone (t1) |
||||||
Estradiol (e1) |
||||||
Progesterone (p1) |