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
TABLE OF CONTENTS:
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.
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
Tomlinson, T. Jones, B. and Chicoli, A.Statistics in Social Sciences https://sites.google.com/umd.edu/statisticsinsocialsciences