Two within-subjects factors structural model

We now describe the structural model for repeated measures ANOVA where there are two within-subjects factors.

Definitions

Definition 1: We modify the structural model of Definition 1 of Two Factor ANOVA with Replication as follows. Note that we will use a to indicate the number of levels for factor A (instead of r) and b to indicate the number of levels for factor B (instead of c). Also, m = the number of subjects or participants.

We use terms such as i (or i.) as an abbreviation for the mean of {xijk: 1 ≤ j  ≤ b, 1 ≤ k ≤ m}. We also use terms such as j (or .j) as an abbreviation for the mean of {xijk: 1 ≤ i ≤ a, 1 ≤ k ≤ m}.

We define the effects αi and βj where

image1360

Similarly, we define ai and bj where

image1363

We use δij for the effect of level i of factor A with level j of factor B, i.e. the interaction of level i of factor A and level j of factor B. Thus, δij = μij – μi – μj + μ. Similarly, we have

image1366

It is easy to show that

image1367

Finally, we can represent each element in the sample as

image1368

where εijk denotes the error (or unexplained) amount, where

image5060

and γk is a random effect corresponding to the subjects/participants. All the interaction terms, i.e. (αγ)ik, (αβ)jk, and (αβγ)ijk, are also random effects; together they make up the error components of our model.

As before we have the sample version

image1370

where eijk is the counterpart to εijk in the sample. The null hypotheses for main effects are:

H0µ1. = µ2. = ··· µa.(Factor A)

H0: µ.1 = µ.2 = ··· µ.b(Factor B)

These are equivalent to:

H0αi = 0 for all i (Factor A)

H0βj = 0 for all j (Factor B)

In addition, there is a null hypothesis for the effects due to the interaction between factors A and B.

H0δij = 0 for all i, j

Definition 2: Using the terminology from Definition 1 of Two Factor ANOVA with Replication, except that we use a for the number of levels in factor A (instead of r) and b for the number of levels in factor B (instead of c), and also adding C = the participant factor and m = number of participants, define:

Two within subjects factors

We can also define four types of between-group terms.

image5061

And similarly for BetAC and BetBC. There is also the following BetABC version:

SS_BetABC

df_BetABC

MS_BetABC

Properties

Property 1:

image2434

image2435

Proof: It is clear that

image2436

image2437

If we square both sides of the equation, sum over i, j, and k and then simplify (with various terms equal to zero as in the proof of Property 2 of Basic Concepts of ANOVA), we get the first result. The second result is trivial.

Property 2: If a sample is made as described in Definition 1 of Basic Concepts of ANOVA, with the xijk independently and normally distributed and with all \sigma^2_{.j} (or \sigma^2_{i.}) equal, then

image1469image2438

Proof: The proof is similar to that of Property 1 of Basic Concepts of ANOVA.

Theorem 1: Suppose a sample is made as described in Definitions 1 and 2 of Two Factor ANOVA with Replication, with the xijk independently and normally distributed.

If all μi are equal and all \sigma^2_{i} are equal then

image2439

If all μj are equal and all \sigma^2_{j} are equal then

image2440

Also, under certain circumstances,

image2441

Proof: The result follows from Properties 1 and 3 of F Distribution.

Property 3:

image2442

image2443

image2444

image2445

We use the following tests:

ANOVA repeated measures tests

If the null hypothesis for factor A is true, then \sum\limits_i {\alpha^2_i} = 0, and so

image2449

whereas if the null hypothesis is not true then \frac{MS_A}{MS_{AC}} > 1. The results are similar for the other null hypotheses.

Reference

Howell, D. C. (2010) Statistical methods for psychology (7th ed.). Wadsworth, Cengage Learning.
https://labs.la.utexas.edu/gilden/files/2016/05/Statistics-Text.pdf

Leave a Comment