*31*

A **repeated measures ANOVA** is used to determine whether or not there is a statistically significant difference between the means of three or more groups in which the same subjects show up in each group.

This tutorial explains how to perform a one-way repeated measures ANOVA by hand.

**Example: One-Way Repeated Measures ANOVA by Hand**

Researchers want to know if three different drugs lead to different reaction times. To test this, they measure the reaction time (in seconds) of five patients on each drug. The results are shown below:

Since each patient is measured on each of the three drugs, we will use a one-way repeated measures ANOVA to determine if the mean reaction time differs between drugs.

Use the following steps to perform the repeated measures ANOVA by hand:

**Step 1: Calculate SST.**

First, we will calculate the total sum of squares (SST), which can be found using the following formula:

SST = s^{2}_{total}(n_{total}-1)

where:

**s**: the variance for the entire dataset^{2}_{total}**n**: the total number of observations in the entire dataset_{total}

In this example we calculate SST to be: (64.2667)(15-1) = **899.7**

**Step 2: Calculate SSB**

Next, we will calculate the between sum of squares (SSB), which can be found using the following formula:

SSB = Σn_{j}(x_{j } – x_{total})^{2}

where:

**Σ**: a greek symbol that means “sum”**n**: the total number of observations in the j_{j}^{th}group**x**: the mean of the j_{j}^{th}group**x**: the mean of the entire dataset_{total}

In this example we calculate SSB to be: (5)(26.4-22.533)^{2} +(5)(25.6-22.533)^{2} + (5)(15.6-22.533)^{2} = **362.1**

**Step 3: Calculate SSS.**

Next, we will calculate the subject sum of squares (SSS), which can be found using the following formula:

SSS =(Σr^{2}_{k}/c) – (N^{2}/rc)

where:

**Σ**: a greek symbol that means “sum”**r**^{2}_{k}: squared sum of the k^{th}patient**N:**the grand total of the entire dataset**r:**total number of patients**c:**total number of groups

In this example we calculate SSS to be: ((74^{2 }+ 42^{2} + 62^{2 }+ 92^{2} + 68^{2})/3) – (338^{2}/(5)(3)) = **441.1**

**Step 4: Calculate SSE.**

Next, we will calculate the error sum of squares (SSE), which can be found using the following formula:

SSE = SST – SSB – SSS

In this example we calculate SSE to be: 899.7 – 362.1 – 441.1 = **96.5**

**Step 5: Fill in the Repeated measures ANOVA table.**

Now that we have SSB, SSS, and SSE, we can fill in the repeated measures ANOVA table:

Source | Sum of Squares (SS) | df | Mean Squares (MS) | F |
---|---|---|---|---|

Between | 362.1 | 2 | 181.1 | 15.006 |

Subject | 441.1 | 4 | 110.3 | |

Error | 96.5 | 8 | 12.1 |

Here is how we calculated the various numbers in the table:

**df between:**#groups – 1 = 3 – 1 = 2**df subject:**#participants – 1 = 5 – 1 = 4**df error:**df between * df subject = 2*4 = 8**MS between:**SSB / df between = 362.1 / 2 = 181.1**MS subject:**SSS / df subject = 441.1 / 4 = 110.3**MS error:**SSE / df error = 96.5 / 8 = 12.1**F:**MS between / MS error = 181.1 / 12.1 = 15.006

**Step 6: Interpret the results.**

The F test statistic for this one-way repeated measures ANOVA is **15.006**. To determine if this is a statistically significant result, we must compare this to the F critical value found in the F distribution table with the following values:

- α (significance level) = 0.05
- DF1 (numerator degrees of freedom) = df between = 2
- DF2 (denominator degrees of freedom) = df error = 8

We find that the F critical value is **4.459**.

Since the F test statistic in the ANOVA table is greater than the F critical value in the F distribution table, we reject the null hypothesis. This means we have sufficient evidence to say that there is a statistically significant difference between the mean response times of the drugs.