The regular p-value calculations in the repeated
measures anova (
ranova) are accurate if the theoretical
distribution of the response variables has compound symmetry. This
means that all response variables have the same variance, and each
pair of response variables share a common correlation. That is,
Under the compound symmetry assumption, the F-statistics in the repeated measures anova table have an F-distribution with degrees of freedom (v1, v2). Here, v1 is the rank of the contrast being tested, and v2 is the degrees of freedom for error. If the compound symmetry assumption is not true, the F-statistic has an approximate F-distribution with degrees of freedom (εv1, εv2), where ε is the correction factor. Then, the p-value must be computed using the adjusted values. The three different correction factor computations are as follows:
where λi i = 1, 2, .., p are the eigenvalues of the covariance matrix. p is the number of variables, and d is equal to p-1.
where n is the number of rows in the design matrix and r is the rank of the design matrix.
Lower bound on the true p-value
 Huynh, H., and L. S. Feldt. "Estimation of the Box Correction for Degrees of Freedom from Sample Data in Randomized Block and Split-Plot Designs." Journal of Educational Statistics. Vol. 1, 1976, pp. 69–82.
 Greenhouse, S. W., and S. Geisser. "An Extension of Box's Result on the Use of F-Distribution in Multivariate Analysis." Annals of Mathematical Statistics. Vol. 29, 1958, pp. 885–891.