Two-Way Repeated Measures ANOVA

BEFORE YOU BEGIN:

The videos below will walk you through the following .Rmd file:

https://drive.google.com/file/d/1ZEGX5sHfG_rcgRDtnxEcg0eF1SBtRIN5/view?usp=sharing

*Thank you to Datanovia for providing the template and dataset for this example!*

Datanovia's two-way repeated measures example can be found here: https://www.datanovia.com/en/lessons/repeated-measures-anova-in-r/#two-way-repeated-measures-anova

And a copy of the dataset can be found here: https://drive.google.com/file/d/1rkPTQ9zYVRImjdH3Y-Hhs-GltTNUC0WK/view?usp=sharing

18–A: 'Tidying' Your Data

We will be introducing tidyverse packages in R during this lesson. The tidyverse (https://www.tidyverse.org/) is a collection of packages in R for data science. These packages all share a common design philosophy, grammar, and data structure so they can work in harmony together.

Specifically, we will introduce data transformations using the spread and gather packages. to tidy our data – in other words, to get them into the format used by the tidyverse. The following images from Allison Horst detail why and how it is important to tidy our data as well as visually depict how spread and gather alter our data. We also cover this in detail in our video.

18–B: Introduction and Learning Outcomes (1:28)

18–C: Loading Packages and our Dataset (8:43)

18–D: Research Question and Hypotheses (4:44)

18–E: Preparing our Data: Creating an ID Variable (5:05)

18–E: Preparing our Data: Converting Data from Wide Format to Long Format (9:20)

18–F: Testing Assumptions (8:44)

18–G: Analyses and Interpretation (7:28)

18–H: Effect Sizes (3:15)

18–I: If You Have a Significant Interaction (10:02)

18–J: If You Do Not Have a Significant Interaction (3:45)

18–K: Post-Hoc Analyses (2:55)

18–L: Pairwise Comparisons for Conditional Effects (12:35)

18–M: Pairwise Comparisons for Main Effects (5:20)

18–M: Final Write-Up (15:59)

18–N: Depicting the Results (6:10)

18–: RMD Analyses Template

If you would like to use R to analyses for two-way repeated measures data for a mixed design (with at least one variable between subjects and one within), you can download and use the below analyses template:

https://drive.google.com/file/d/1N1LxyZw6D42BXKTTeObEx48oSVUB0CzY/view?usp=sharing

References

  1. Tomlinson, T. Jones, B. and Chicoli, A.Statistics in Social Sciences https://sites.google.com/umd.edu/statisticsinsocialsciences


Interested in Learning More?