Skip to main content
Statistics LibreTexts

8.1: Repeated Measures Design

  • Page ID
    7933
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Let’s use the exact same toy example from the previous chapter, but let’s convert it to a repeated measures design.

    Last time, we imagined we had some data in three groups, A, B, and C. The data looked like this:

    scores <- c(20,11,2,6,2,7,2,11,2)
    groups <- as.character(rep(c("A","B","C"), each=3))
    df<-data.frame(groups,scores)
    knitr::kable(df)
    groups scores
    A 20
    A 11
    A 2
    B 6
    B 2
    B 7
    C 2
    C 11
    C 2

    The above table represents a between-subject design where each score involves a unique subject.

    Let’s change things up a tiny bit, and imagine we only had 3 subjects in total in the experiment. And, that each subject contributed data to the three levels of the independent variable, A, B, and C. Before we called the IV groups, because there were different groups of subjects. Let’s change that to conditions, because now the same group of subjects participates in all three conditions. Here’s the new table for a within-subjects (repeated measures) version of this experiment:

    scores <- c(20,11,2,6,2,7,2,11,2)
    conditions <- as.character(rep(c("A","B","C"), each=3))
    subjects <-rep(1:3,3)
    df<-data.frame(subjects,conditions,scores)
    knitr::kable(df)
    subjects conditions scores
    1 A 20
    2 A 11
    3 A 2
    1 B 6
    2 B 2
    3 B 7
    1 C 2
    2 C 11
    3 C 2

    This page titled 8.1: Repeated Measures Design is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Matthew J. C. Crump via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?