statable Statistics for study and research

One question beforehand instead of all pairs afterwards? (planned comparison, contrast, contrast weights)

In brief

A planned comparison (contrast) answers a question that was fixed before the analysis, for example: does the control lie differently from both methods together? Each group gets a contrast weight, and the weights add up to 0. Such a comparison is a single question and may use the full level; pairwise comparisons afterwards have to share it among all pairs.

An example by hand

Three groups of 10 people each: control (mean 12), method A (15) and method B (17). The pooled error variance from the analysis of variance is 16. The question beforehand: control against the mean of both methods. Weights: −2, +1, +1.

  1. Contrast value: (−2) · 12 + 1 · 15 + 1 · 17 = 8. The methods lie 4 points above the control on average; the value 8 is twice as large because the weights are scaled like that.
  2. Standard error: square root of (16 · (4 + 1 + 1) : 10) = square root of 9.6 = 3.10.
  3. t = 8 : 3.10 = 2.58 with 27 degrees of freedom (30 people minus 3 groups). The critical value is about 2.05, so the contrast is significant.

Why one question beforehand?

Every additional test raises the chance of a false alarm. Whoever fixes one or a few targeted questions beforehand only has to protect these. Comparing all pairs after looking at the data, on the other hand, requires a stricter level, with three groups and Bonferroni 5% divided by 3 equals 1.67% per pair. The price of planning: the question really has to be fixed before the data and belong to the research question.

Choosing weights correctly

How it works in Statable

  1. Open the example "Nitrate in water" (learning or examples) and look at the analysis "Comparing three areas".
  2. Below the result of the analysis of variance open "Planned comparisons (contrasts) and trend analysis".
  3. Enter weights or insert a template (Helmert, simple, repeated, deviation). Statable shows estimate, standard error, t, degrees of freedom, p and interval and reports when the sum is not 0 or two contrasts are not orthogonal.
  4. With "pooled error variance" Statable calculates like the hand calculation above; "Welch" (default) needs no equal variances.

What is often misunderstood

For specialists

The contrast value ψ = Σ cᵢ·M̄ᵢ has the variance MS_error · Σ cᵢ²/nᵢ; t = ψ : SE with the degrees of freedom of the error term. F = t² and SS_contrast = ψ² : Σ(cᵢ²/nᵢ). With equal group sizes the sums of squares of orthogonal contrasts add up to the sum of squares between the groups. Without equal variances each group is weighted with its own variance and the degrees of freedom are approximated after Satterthwaite.

Sources

Maxwell, S. E. & Delaney, H. D. (2004). Designing Experiments and Analyzing Data: A Model Comparison Perspective (2nd ed.). Erlbaum. Dormann, C. F. Parametrische Statistik (note on comparisons planned beforehand).

Take away

  • A contrast is a weighted sum of group means; the weights add up to 0.
  • Standard error: square root of (error variance times sum of squared weights divided by n per group); t = contrast value divided by standard error.
  • The question has to be fixed before the data; otherwise the comparison counts as a post-hoc test.
  • Orthogonal contrasts answer independent questions, at most k − 1 with k groups.

Related

Open in Statable