- What is Repeated Measures ANOVA?
- Repeated Measures ANOVA Assumptions
- Quick Data Check
- Running Repeated Measures ANOVA in SPSS
- Interpreting the Output
- Reporting Repeated Measures ANOVA

## 1. What is Repeated Measures ANOVA?

SPSS repeated measures ANOVA tests if the means of 3 or more metric variables are all equal in some population. If this is true and we inspect a **sample** from our population, the sample means may differ *a little bit*. Large sample differences, however, are unlikely; these suggest that the population means weren't equal after all.

The simplest repeated measures ANOVA involves 3 outcome variables, all measured on 1 group of cases (often people). Whatever distinguishes these variables (sometimes just the time of measurement) is the **within-subjects factor**.

## Repeated Measures ANOVA Example

A marketeer wants to launch a new commercial and has four concept versions. She shows the four concepts to 40 participants and asks them to rate each one of them on a 10-point scale, resulting in commercial_ratings.sav.Although such ratings are strictly ordinal variables, we'll treat them as metric variables under the assumption of equal intervals. Part of these data are shown below.

The research question is: **which commercial has the highest mean rating?** We'll first just inspect the mean ratings in our sample. We'll then try and generalize this sample outcome to our population by testing the **null hypothesis** that
the 4 population mean scores are all equal.
We'll reject this if our sample means are *very* different. Reversely, our sample means being *slightly* different is a normal sample outcome if population means are all similar.

## 2. Assumptions Repeated Measures ANOVA

Running a statistical test doesn't always make sense; results reflect reality only insofar as relevant assumptions are met. For a (single factor) repeated measures ANOVA these are

**Independent observations**(or, more precisely, independent and identically distributed variables). This is often -not always- satisfied by each case in SPSS representing a different person or other statistical unit.- The test variables follow a
**multivariate normal distribution**in the population. However, this assumption is not needed if the sample size >= 25. **Sphericity**. This means that the population variances of all possible difference scores (com_1 - com_2, com_1 - com_3 and so on) are equal. Sphericity is tested with**Mauchly’s test**which is always included in SPSS’ repeated measures ANOVA output so we'll get to that later.

## 3. Quick Data Check

Before jumping blindly into statistical tests, let's first get a rough idea of what the data look like. Do the frequency distributions look plausible? Are there any system missing values or user missing values that we need to define? For quickly answering such questions, we'll open the data and run histograms with the syntax below.

***Run histograms for 4 variables without frequency tables.**

frequencies com_1 to com_4

/format notable

/histogram.

## Result

First off, **our histograms look plausible** and don't show any weird patterns or extreme values. There's no need to exclude any cases or define user missing values.

Second, since n = 40 for all variables, we don't have any system missing values. In this case, we can proceed with confidence.

## 4. Run SPSS Repeated Measures ANOVA

We may freely choose a name for our **within-subjects factor**. We went with “commercial” because it's the commercial that differs between the four ratings made by each respondent.

We may also choose a name for our **measure**: whatever each of the four variables is supposed to reflect. In this case we simply chose “rating”.

We now select all four variables and move them to the

Under we'll select .

Clicking results in the syntax below.

***Basic Repeated-Measures ANOVA Syntax.**

GLM com_1 com_2 com_3 com_4

/WSFACTOR=commercial 4 Polynomial

/MEASURE=rating

/METHOD=SSTYPE(3)

/PRINT=DESCRIPTIVE

/CRITERIA=ALPHA(.05)

/WSDESIGN=commercial.

## 5. Repeated Measures ANOVA Output - Descriptives

First off, we take a look at the **Descriptive Statistics** table shown below. Commercial 4 was rated best (m = 6.25). Commercial 1 was rated worst (m = 4.15). Given our 10-point scale, these are large differences.

## Repeated Measures ANOVA Output - Mauchly’s Test

We now turn to Mauchly's test for the sphericity assumption. As a rule of thumb, **sphericity is assumed if Sig. > 0.05**. For our data, Sig. = 0.54 so sphericity is no issue here.

The amount of sphericity is estimated by **epsilon** (the Greek letter ‘e’ and written as ε). There are different ways for estimating it, including the Greenhouse-Geisser, Huynh-Feldt and lower bound methods. If sphericity is violated, these are used to correct the within-subjects tests as we'll see below.If sphericity is very badly violated, we may report the Multivariate Tests table or abandon repeated measures ANOVA altogether in favor of a Friedman test.

## Repeated Measures ANOVA Output - Within-Subjects Effects

Since our data seem spherical, we'll ignore the Greenhouse-Geisser, Huynh-Feldt and lower bound results in the table below. We'll simply interpret the uncorrected results denoted as “**Sphericity Assumed**”.

The **Tests of Within-Subjects Effects** is our core output. Because we've just one factor (which commercial was rated), it's pretty simple.

Our p-value, **Sig. = .000**. So if the means are perfectly equal in the population, there's a 0% chance of finding the differences between the means that we observe in the sample. We therefore reject the null hypothesis of equal means.

The F-value is not really interesting but we'll report it anyway. The same goes for the effect degrees of freedom (df1) and the error degrees of freedom (df2).

## 6. Reporting the Measures ANOVA Result

When reporting a basic repeated-measures ANOVA, we usually report

- the
**descriptive statistics**table - the outcome of
**Mauchly's test**and - the outcome of the
**within-subjects tests**.

When reporting corrected results (Greenhouse-Geisser, Huynh-Feldt or lower bound), indicate which of these corrections you used. We'll cover this in SPSS Repeated Measures ANOVA - Example 2.

Finally, the main F-test is reported as
*“The four commercials were not rated equally, F(3,117) = 15.4, p = .000.”*

Thank you for reading!

## THIS TUTORIAL HAS 54 COMMENTS:

## By Panagiotis Michalopoulos on April 9th, 2021

Excellent Tutorial!

Is it possible to do a Repeated Measures ANOVA using summary data for the subjects ( mean, standard deviation, number of observations)?

## By Ruben Geert van den Berg on April 10th, 2021

Hi Panagiotis!

Thanks for the compliment and your question!

I'm not sure about the answer but for one thing,

-Sample sizes

-Means and

-SD's

won't do for RM ANOVA. If you run a paired samples t-test in SPSS, you'll see that the output contains the correlation between the variable pair(s) you compare, even if you never asked for it.

This correlation is needed for computing the SD of the difference scores between a variable pair, which is what we really test for.

If I see RM ANOVA as an extension of this t-test, I suppose I need at least the aforementioned statistics plus the correlation matrix or covariance matrix among all variables being compared.

But in any case, SPSS doesn't seem to have any option for running RM ANOVA on summary statistics...

Hope that helps!

Ruben

SPSS tutorials

## By Kevin Ford on May 28th, 2021

The description seems clear, but I'm still struggling to understand.

I'm currently trying to perform a repeated measures ANOVA, looking at two groups at 4 time points.

The dependent variable at those time points (baseline, 1 week, 4 weeks and 12 weeks) is pain level.

In the box "Within subject factor name" do I say "Pain" and select 4 Levels? What is the Measure Name in this case?

I'm sure that beyond this step there's more I don't grasp, but here's where I'm currently stuck intellectually.

## By Ruben Geert van den Berg on May 28th, 2021

Hi Kevin!

First off, it doesn't matter what you put in the box. If you don't enter anything, SPSS will just call it "Factor 1" or something.

Anyway, the within-subjects (WS) factor is whatever distinguishes the variables you're comparing. It is something that only exists

between variablesso it's not an existing variable in your data.In your case, I'd say "timepoint" or just "time"/"week" seems appropriate.

Hope that clarifies!

SPSS tutorials

## By Mityu on June 27th, 2021

"if Sig. > 0.05" - it is an error.