- Introduced by
- Rand R. Wilcox
- Year
- 1990s–2000s
- Type
- Robust parametric mean comparison
- Family
- Classical statistics
What does it do?
Robust repeated measures ANOVA tests whether population trimmed means differ across three or more repeated conditions or time points measured on the same subjects.
It replaces ordinary means with trimmed means (20% trimming is the usual default) and uses Winsorized variability and covariances in the error term. The aim is to keep Type I error and power more stable when data are non-normal, skewed, or contain outliers, conditions under which classical repeated measures ANOVA can be unreliable.
The intuition behind the method
Classical repeated measures ANOVA compares condition means and assumes approximately normal scores with comparable variability across conditions. A few extreme scores in one condition can shift its mean and inflate its variance, which can distort the F test. The robust version trims the most extreme 20% from each tail of each condition when computing location, and it estimates variability from Winsorized values, so extreme observations are limited rather than dropped from the variance calculation. The scientific question stays the same, namely whether the conditions differ, but the location and spread measures are chosen to be less sensitive to unusual scores. Key assumptions: subjects are independent of one another, and each subject contributes a score under every condition. Trimming is applied within each condition, so the original within-subject pairing is not preserved in the trimmed samples; the Winsorized covariance structure is what carries the dependence between conditions into the test. Subjects with missing repeated observations require an explicit handling decision, such as listwise deletion (which reduces n), and this should be reported.
History
Trimmed means with Winsorized variability in heteroscedastic tests predate the repeated-measures procedure; the approach is usually traced to Yuen's work on two-group comparisons, and Rand R. Wilcox and colleagues extended and popularized it for multi-group and repeated-measures designs. Keselman, Wilcox, and Lix (2003) showed how trimmed means with an approximate degrees-of-freedom heteroscedastic statistic can be applied to both independent and correlated groups designs, and illustrated the approach with psychophysiological examples. The R implementation commonly used is the WRS2 package.
When to use it
Choose robust repeated measures ANOVA when the same subjects are measured under three or more conditions or time points and classical RM-ANOVA assumptions are in doubt, for example because scores are strongly non-normal, contain outliers, or show unequal variability and covariance across conditions. It suits questions about central tendency when normality is hard to check from the sample. Do not use it when the question concerns medians or rank-based differences; the Friedman test or permutation-based approaches are better matched to those cases. Be cautious when few observations remain in a condition after trimming, because the approximation depends on adequate sample size; no validated minimum is given here, so check adequacy against the cited sources and your chosen trimming level. If the data are close to normal, sample sizes are adequate, and sphericity holds, classical RM-ANOVA is usually the more familiar choice.
Limitations and considerations
- Trimmed means estimate a different parameter from ordinary means; when distributions are symmetric and well behaved, the robust and classical tests address slightly different questions and their results are not directly interchangeable.
- Trimming 20% from each tail of each condition reduces the effective sample per condition.
- The reference distribution rests on an approximation that requires adequate sample size, and no single validated threshold is given here; adequacy should be checked against the cited sources before reporting.
- Trimming is done per condition, so the within-subject pairing is not preserved in the trimmed samples, and subjects with missing observations must be handled explicitly (for example by listwise deletion with reduced n).
- Post-hoc procedures are less standardized and less widely supported in common software than classical ANOVA follow-up tests.
- Readers and reviewers are generally more familiar with classical RM-ANOVA, so the choice of method and trimming level needs explicit justification in the manuscript.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Designed to limit the distortion that outliers and non-normality cause in the classical F test, through trimmed means and Winsorized variability; Keselman, Wilcox, and Lix (2003) describe this approach for both independent and correlated groups designs.
- Targets a location parameter that is less influenced by extreme scores, so a few unusual values in one condition do not drive the omnibus result.
- Uses an approximate degrees-of-freedom heteroscedastic statistic, designed to control Type I error under nonnormality and variance heterogeneity, as described by Keselman, Wilcox, and Lix (2003).
- Keeps magnitude information in the analysis, unlike rank-based alternatives such as the Friedman test.
- Implementations exist in R, including the WRS2 package.
Applications
- Longitudinal studies measuring the same patients at several time points when outcome scores are skewed or contain occasional extreme values.
- Psychophysiological experiments with repeated measurements across conditions, the field from which Keselman, Wilcox, and Lix (2003) drew their examples.
- Within-subject experiments in which a few atypical trials in one condition would otherwise dominate a mean-based comparison.
- Other repeated-measures settings with suspected outliers or skewness; suitability should be checked case by case.
How it works
How it works
The null hypothesis states that the population trimmed means are equal across all k repeated conditions. The alternative is that at least one trimmed mean differs from the others. Trimmed means are used instead of ordinary means throughout, making the null hypothesis about a location measure that is less influenced by extreme values.
Formula
H_0:\ \mu_{t1} = \mu_{t2} = \cdots = \mu_{tk} \quad H_1:\text{ at least one trimmed mean differs}For each condition, the lowest and highest 20% of observations (gamma = 0.20) are removed before the mean is computed. With n observations, g = floor(0.20 × n) are removed from each tail, leaving h = n − 2g observations in the trimmed sample. Trimming reduces the pull of outliers on the location estimate.
Formula
\bar{X}_{t} = \frac{1}{h}\sum_{i=g+1}^{n-g} X_{(i)}, \quad g = \lfloor \gamma n \rfloor,\; \gamma = 0.20Winsorization is used for the variability estimate. Values below the (g+1)th order statistic are replaced by that order statistic, and values above the (n−g)th order statistic are replaced by that order statistic, so every observation remains in the sample. The variances and covariances of these Winsorized values feed the error term, which keeps extreme scores from inflating the estimated spread as much as they would in the ordinary variance. The exact way the Winsorized quantities enter the repeated-measures test is given in the cited literature and implemented in WRS2.
Formula
W_i = \begin{cases} X_{(g+1)} & X_i < X_{(g+1)} \\ X_{(n-g)} & X_i > X_{(n-g)} \\ X_i & \text{otherwise} \end{cases}The formula shown above is a schematic illustration of the idea (between-condition variability in trimmed means relative to Winsorized error), not the statistic that is actually computed. The published omnibus test is an approximate heteroscedastic statistic that uses trimmed means, a Winsorized covariance matrix and adjusted degrees of freedom (Keselman, Wilcox & Lix, 2003). Its reference distribution is an approximation. For the exact computation, use an implementation such as the WRS2 package rather than reconstructing it from the schematic.
Formula
F_t \approx \frac{\text{between-condition variability of trimmed means}}{\text{error based on Winsorized covariances}} \quad \text{(schematic only)}If the p-value is below the chosen significance level (conventionally 0.05), the null hypothesis of equal trimmed means is rejected. Rejection shows that at least one condition's trimmed mean differs, not which one, so follow-up pairwise comparisons on trimmed means are needed. In WRS2 these are provided by rmmcp(); the multiple-comparison control it applies should be checked in the package documentation and reported. Report a robust effect size alongside the p-value; the choice and computation of the effect size (for example an explanatory measure of effect) should follow the WRS2 documentation or Wilcox (2012), and the measure used should be named in the report.
Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad \hat{\xi} = \text{robust effect size}Common pitfalls
- Applying 20% trimming automatically without checking the distribution shape and the number of observations left per condition; the trimming level should be a deliberate decision.
- Reading the result as a test of ordinary means; the null hypothesis concerns trimmed means, and conclusions should be phrased accordingly.
- Reporting only the p-value and omitting a robust effect size, which leaves practical magnitude unaddressed.
- Ignoring covariance structure because a robust test was chosen; the approach reduces sensitivity to heterogeneity but does not remove it, so the covariance pattern should still be examined and reported.
- Switching to the robust test only after the classical test fails to reach significance; this kind of selection undermines the nominal error rate.
Frequently asked questions
Why 20% trimming, and can I use a different level?
The 20% level (gamma = 0.20) is the default used on this page. It removes a substantial share of each tail while keeping much of the sample for estimation. Other trimming levels can be considered, but a different level changes the parameter being tested, so the choice should be justified and reported, and a sensitivity analysis across levels is a reasonable check. Wilcox (2012), cited on this page, discusses these trade-offs.
Is robust RM-ANOVA the same as the Friedman test?
No. The Friedman test is a rank-based nonparametric test and discards magnitude information. Robust RM-ANOVA keeps magnitude information through trimmed means. The two address related but different questions, so the choice should follow the substantive question rather than which test gives the smaller p-value.
Do I still need to check sphericity?
Yes. The robust approach reduces sensitivity to heterogeneous covariance but does not remove the issue entirely, so the covariance structure should still be examined and reported. Keselman, Wilcox, and Lix (2003) discuss the heteroscedastic statistic on which the robust approach relies.
How do I run this in R?
The WRS2 package in R provides functions for robust repeated-measures analysis. This page refers to rmanova() for the omnibus test and rmmcp() for post-hoc pairwise comparisons. Check the package documentation for current argument names and options.
When should I prefer classical RM-ANOVA over the robust version?
When scores are approximately normal within each condition, sample sizes are adequate, and sphericity holds (or a Greenhouse-Geisser correction suffices), classical RM-ANOVA is appropriate and more familiar to readers. The robust version adds value mainly when those conditions are in doubt.
Related methods
Sources
Wilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press.
ISBN: 978-0123869838Keselman, H. J., Wilcox, R. R., & Lix, L. M. (2003). A generally robust approach to hypothesis testing in independent and correlated groups designs. Psychophysiology, 40(4), 586–596.
Open DOI reference