- Introduced by
- Rosenthal, Rosnow & Rubin (modern formalization)
- Year
- 2000
- Type
- Parametric planned comparison
What does it do?
Planned contrast analysis is a parametric hypothesis test that evaluates specific comparisons among group means, where the comparisons are chosen by the researcher before data are collected rather than in response to observed patterns.
Each comparison is defined by a set of contrast coefficients that sum to zero, and the test asks whether the resulting weighted combination of means differs from zero. The formal treatment used here is the one presented by Rosenthal, Rosnow, and Rubin (2000).
The intuition behind the method
Suppose you have four experimental groups and your theory predicts that two of them, taken together, should differ from the other two. Rather than running every pairwise comparison after seeing the data, you encode that prediction as a contrast: a set of signed weights, one per group, that sum to zero. You then test only that hypothesis. Because one planned test replaces a broad exploratory search, the set of tests is small, but the error-rate implications depend on whether the contrasts were fixed in advance and are mutually orthogonal, as covered under when to use the method.
History
The formal treatment of contrast coefficients for comparing group means is presented in modern form by Rosenthal, Rosnow, and Rubin (2000), in a Cambridge University Press monograph that gives a correlational framework relating contrasts to effect sizes and confidence intervals.
When to use it
Choose planned contrast analysis when you compare three or more independent groups on a single continuous outcome and you hold specific hypotheses about which group combinations should differ, fixed before you examine the data. Within-group distributions should be approximately normal (the page suggests checking with the Shapiro-Wilk test), variances should be homogeneous across groups (checked with Levene's test), and observations should be independent. The minimum total sample size used on this page is 20. This is a working convention rather than a formal requirement, and the power actually achieved depends on the number of groups and the effect size. Do not use planned contrasts when you have no a priori predictions; post-hoc procedures such as Tukey's HSD are more appropriate in that case. If you need to test contrasts that were not planned in advance, Scheffé's method is designed for unplanned contrast families. A Bonferroni adjustment is a simple option for a small set of non-orthogonal planned contrasts. Choose the adjustment before computing the tests. Contrasts added after inspecting the data should be reported as exploratory. Many texts treat a small, fixed, mutually orthogonal planned set as not requiring a familywise correction. This is a convention rather than a guarantee, so state the adjustment used when you report the results.
Limitations and considerations
- The power advantage depends on the chosen coefficients matching the real pattern of group differences; an unanticipated pattern may be missed by the planned tests.
- A set of mutually orthogonal contrasts cannot exceed k − 1 for k groups, which limits how many independent questions one set can address.
- Requires genuine a priori planning; coefficients chosen after seeing the means make the analysis post hoc and invalidate the planned-test logic.
- Inference relies on the ANOVA error term and t-based reference distributions, so it is sensitive to non-normality and unequal variances, particularly in small samples.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Higher power than an omnibus ANOVA followed by all pairwise post-hoc tests when the predicted comparisons match the true pattern, because only the specified comparisons are tested.
- Orthogonal contrasts are statistically independent and, with equal group sizes, split the between-groups variance without overlap, so each result can be read on its own.
- Tests a theory-derived pattern rather than a global null hypothesis, so the estimate and r describe the specific comparison of interest.
- For a small, fixed, mutually orthogonal planned set, many texts apply no familywise correction, which keeps the nominal alpha level. This is a convention, so state the adjustment used when reporting.
Applications
- Testing whether a specific therapeutic condition outperforms a combined control and placebo condition in clinical psychology trials.
- Evaluating whether higher-dose groups, pooled together, differ from lower-dose groups in pharmacological experiments.
- Comparing a newly developed teaching method against the average of established methods in educational research.
- Testing theoretically ordered predictions (e.g., a linear trend across ordered conditions) before examining data in social and behavioral science experiments.
How it works
How it works
For each planned contrast, write down coefficients c₁, c₂, …, cₖ, one per group, that sum to zero. The null hypothesis states that the weighted sum of the population means equals zero, meaning the comparison shows no effect. The alternative, as written in the test formula, states that this weighted sum differs from zero, so the test is two-sided. A predicted direction may motivate the contrast, but it is not built into the test as presented here. The coefficients must be fixed before the data are examined, because choosing them afterward turns the contrast into a post-hoc test. Groups with a coefficient of 0 are left out of the comparison, and the test detects a difference whichever sign pattern the coefficients take, because the contrast compares positively and negatively weighted groups regardless of the direction of the difference.
Formula
H_0:\ \sum_{j=1}^{k} c_j \mu_j = 0 \quad H_1:\ \sum_{j=1}^{k} c_j \mu_j \neq 0 \quad \text{where } \sum_{j=1}^{k} c_j = 0The t statistic for a contrast divides the weighted sum of sample means (each group mean multiplied by its coefficient) by the square root of the within-groups mean square from the ANOVA error term, multiplied by the sum of the squared coefficients divided by the group sample sizes. The statistic is referred to a t-distribution with the within-groups degrees of freedom from the ANOVA. When contrasts are mutually orthogonal, their tests are statistically independent and together partition the between-groups sum of squares. With equal group sizes, orthogonality holds when the sum of the products of the coefficients is zero. With unequal group sizes, each product must be weighted by the reciprocal of the group size before the sum is checked.
Formula
t = \dfrac{\displaystyle\sum_{j=1}^{k} c_j \bar{x}_j}{\sqrt{MS_{\text{within}} \displaystyle\sum_{j=1}^{k} \dfrac{c_j^2}{n_j}}}Each contrast t value is referred to the t-distribution at the chosen alpha level, commonly 0.05. If the p-value falls below alpha, the null hypothesis for that contrast is rejected. The contrast estimate is L = Σ cⱼ x̄ⱼ, with standard error SE = √(MS_within Σ cⱼ²/nⱼ), using the same denominator as the t statistic. The 95% confidence interval is L ± t_crit × SE, where t_crit is the two-sided critical value of the t-distribution at alpha = 0.05 with the within-groups degrees of freedom. The effect size is expressed as the contrast correlation r = √(t² / (t² + df_within)). The benchmarks given for this page are 0.10 (small), 0.30 (medium), and 0.50 (large). Report the contrast estimate, its 95% confidence interval, and r together with the p-value.
Formula
\text{reject } H_0 \text{ if } p < \alpha;\quad r_{\text{contrast}} = \sqrt{\dfrac{t^2}{t^2 + df_{\text{within}}}}Common pitfalls
- Choosing coefficients after inspecting the means converts planned contrasts into post-hoc tests and inflates the Type I error rate.
- Using non-orthogonal contrasts without a multiplicity correction overstates confidence in the combined set of results.
- Coefficients that do not sum to zero make the test invalid, so check every contrast before computing t.
- Reporting only the p-value, without the contrast estimate, its 95% confidence interval, and r, hides the size and direction of the effect.
Frequently asked questions
What does it mean for contrasts to be orthogonal?
Two contrasts are orthogonal when the sum of the products of their corresponding coefficients equals zero, provided the groups are of equal size. With equal group sizes, orthogonal contrasts are statistically independent, so their test statistics are uncorrelated, and together they partition the between-groups sum of squares without overlap. With unequal group sizes, the simple sum of products may not establish orthogonality; each product should be weighted by the reciprocal of the group size before the sum is checked. You can have at most k − 1 mutually orthogonal contrasts for k groups.
How is planned contrast analysis different from post-hoc tests?
Planned contrasts are specified before data collection, based on theory. Post-hoc tests are applied after an omnibus ANOVA when you have no specific prior predictions and want to explore which pairs of means differ. Planned contrasts test fewer hypotheses and so are more powerful, but they are legitimate only when the comparison was truly specified in advance.
Do I need to run an omnibus ANOVA first?
No. The planned contrasts can stand alone if they address your research questions. The omnibus F test answers a different question, namely whether any means differ at all. The contrast t statistic does use the within-groups mean square from the ANOVA error term, so the ANOVA error estimate is still required, even though the omnibus F test does not gate the contrast tests.
What effect size should I report?
The contrast correlation r is the recommended effect size: r = √(t² / (t² + df_within)). It is interpretable on the familiar 0-to-1 scale and quantifies the relationship between group membership, as weighted by the contrast, and the outcome. Report it together with the contrast estimate and its 95% confidence interval.
Related methods
Sources
Rosenthal, R., Rosnow, R. L. & Rubin, D. B. (2000). Contrasts and Effect Sizes in Behavioral Research: A Correlational Approach. Cambridge University Press.
ISBN: 978-0521659802