PSY 356
Here, \(Age_{ij}\) and \(Drinking_{ij}\) are the age and drinking score, respectively, of subject \(j\) at time \(i\), and Note that under this formulation, only the intercept can vary by person.
Now, under this formulation, we can have variation in the slopes by person.
This can help us to model change that increases and subsequently decreases or levels off. Note that we could include a random effect for that quadratic component too.
Now we have the intercept of drinking being allowed to differ between males and females. We could also allow the slopes to differ.
The paired samples t-test examines the difference between paired observations:
$$t = \frac{\bar{d}}{\frac{s_d}{\sqrt{n}}}$$
Where:
We can reframe this as a multilevel model, with measurements nested within subjects:
Level 1
where:
$$\beta_{0j} = \gamma_{00} + u_{0j}$$
$$y_{ij} = \beta_{0j} + \beta_{1j}G_{ij} + r_{ij}$$
Level 2
$$\beta_{1j} = \gamma_{10}$$
Repeated measures ANOVA examines differences across multiple conditions within subjects:
$$ F = \frac{MS_{group}}{MS_{error}} = \frac{\frac{SS_{group}}{df_{group}}}{\frac{SS_{error}}{df_{error}}} $$
where:
Key assumption: Sphericity (equal variances of differences between all pairs of conditions)
We can reframe this as a multilevel model with measurements nested within subjects:
$$y_{ij} = \beta_{0j} + \sum_{m=1}^{k-1} \beta_{mj}G_{mij} + r_{ij}$$
$$\beta_{0j} = \gamma_{00} + u_{0j}$$
$$\beta_{mj} = \gamma_{m0}$$
where:
Level 1
Level 2
Note: The standard RM-ANOVA assumes compound symmetry and sphericity, while multilevel models can relax these assumptions by specifying different variance-covariance structures.
colev@wfu.edu