Comprehensive step-by-step guide for performing Repeated Measures Analysis of Variance in DATES, evaluating longitudinal time-series data, Mauchly sphericity testing, and Greenhouse-Geisser/Huynh-Feldt p-value adjustments.
The Repeated Measures ANOVA module in DATES performs statistical analysis for experiments where identical experimental units (subjects, plots, or samples) are measured repeatedly across multiple consecutive time points or inspection intervals.
In longitudinal studies, observations taken on the same subject over time are correlated, violating standard independent ANOVA assumptions. Repeated Measures ANOVA accounts for within-subject correlation by partitioning variance into Between-Subjects effects and Within-Subjects temporal effects.
Core Features of Repeated Measures ANOVA:
The sidebar control panel and header toolbar provide full control over factor assignments, sphericity correction selection, post-hoc methods, and transformations:
| Control / Parameter | Description | Why it is used | When to select / set |
|---|---|---|---|
| Upload Data | Uploads your .csv, .xlsx, or .xls trial dataset into memory. |
Loads raw longitudinal trial spreadsheet into memory. | At the start of every Repeated Measures analysis session. |
| Between-Subjects Factor | Selects categorical column defining treatment groups or conditions. | Partitions overall treatment group variation. | Select primary treatment factor (e.g., Treatment_Group). |
| Within-Subjects (Time) Factor | Selects the column specifying time points, observation intervals, or durations. | Partitions temporal changes across measurement periods. | Select time factor column (e.g., Week_0, Week_2, Week_4). |
| Subject / Plot Identifier | Selects column identifying individual subjects or experimental units. | Isolates individual subject baseline variation across time points. | Select unique subject or plot ID column (e.g., Subject_ID). |
| Target Response Traits | Selects continuous quantitative measurement variables to analyze. | Generates repeated measures ANOVA, time-course profile plots, and sphericity tables. | Select one or multiple quantitative response traits. |
| Sphericity Correction | Choose between Auto (Mauchly), Greenhouse-Geisser (GG), or Huynh-Feldt (HF). |
Adjusts numerator and denominator degrees of freedom when sphericity assumption is violated. | Use Auto to let Mauchly test determine correction; choose GG or HF manually if required. |
| Alpha Level | Significance threshold (5% or 1%). |
Sets critical threshold for F-test significance and confidence intervals. | Set to 5% for standard research or 1% for stringent significance testing. |
| Mean Separation Test | Selects post-hoc test: LSD, Tukey, Duncan, Dunnett, or None. |
Identifies statistically significant pairwise differences among treatment groups and time points. | Select LSD or Tukey for pairwise checks; use Dunnett to compare treatments against baseline. |
| Transformations | Applies 15 automated transformations (e.g., Log, Square Root, ArcSine, Box-Cox) to normalize response data. | Stabilizes residual variance when normality or homoscedasticity assumptions are violated. | Toggle on when diagnostic residual plots show non-normality or unequal variance. |
DATES accepts dataset spreadsheets in standard .xlsx, .xls, or .csv formats. Data can be formatted in tidy long format where each row represents an individual time-point observation for a subject:
| Subject_ID | Treatment_Group | Time_Point | Response_Metric | Secondary_Trait |
|---|---|---|---|---|
| Subject_01 | Control_Group | Week_00 | 42.50 | 8.20 |
| Subject_01 | Control_Group | Week_02 | 44.10 | 8.35 |
| Subject_01 | Control_Group | Week_04 | 45.80 | 8.50 |
| Subject_02 | Active_Group | Week_00 | 42.10 | 8.15 |
| Subject_02 | Active_Group | Week_02 | 49.60 | 9.10 |
| Subject_02 | Active_Group | Week_04 | 56.30 | 9.60 |
Repeated Measures ANOVA partitions total variation into Between-Subjects SS (Treatment & Subject Error) and Within-Subjects SS (Time, Time x Treatment, & Time x Subject Error). Below are the plain text formula definitions:
Treatment SS (SSA): Variation across between-subject treatment groups.
Subject Error SS (Error_Sub): Variation among subjects within treatment groups.
F-Test Treatment: F_Group = MS_Treatment / MS_ErrorSub
Time SS (SSTime): Variation across repeated measurement time points.
Time x Treatment SS (SS_AxTime): Interaction measuring differential treatment trajectories.
Within Error SS (Error_Time): Time x Subject interaction residual error.
Mauchly W Statistic: Evaluates equality of variances of differences between time pairs.
Sphericity Violation: If p < 0.05, sphericity is violated; degrees of freedom must be adjusted.
Greenhouse-Geisser Epsilon: Conservative epsilon multiplier (0 < e < 1) reducing DF for F-test.
Huynh-Feldt Epsilon: Slightly less conservative epsilon correction for moderate sample sizes.
.csv or .xlsx file..xlsx), Word summaries (.docx), PowerPoint slide decks (.pptx), or publication-grade PNG images.Below is an example of a Repeated Measures ANOVA Summary Table evaluating 2 Treatment Groups across 4 Time Points:
| Source of Variation | Unadjusted df | GG Adjusted df | Sum of Squares (SS) | Mean Square (MS) | F-Statistic | Unadjusted p | GG Adjusted p |
|---|---|---|---|---|---|---|---|
| Treatment Group (Between) | 1 | 1.000 | 245.800 | 245.800 | 18.908 | 0.0003 | 0.0003 (**) |
| Subject Error (Between) | 18 | 18.000 | 234.000 | 13.000 | — | — | — |
| Time Factor (Within) | 3 | 2.226 | 312.400 | 140.341 | 42.528 | 0.0001 | 0.0001 (**) |
| Time x Treatment Interaction | 3 | 2.226 | 128.600 | 57.772 | 17.507 | 0.0001 | 0.0001 (**) |
| Time Error (Within) | 54 | 40.068 | 178.200 | 3.300 | — | — | — |
| Total Variation | 79 | — | 1099.000 | — | — | — | — |
When sphericity is violated (Mauchly p < 0.05), unadjusted ANOVA p-values produce inflated Type I error rates. Use Greenhouse-Geisser or Huynh-Feldt adjusted p-values for reporting.
Ensure that all subjects are measured at the exact same set of time points. If missing data points occur, DATES automatically handles missing intervals via REML mixed modeling.