statable Statistics for study and research

Does the effect depend on a second variable? (interaction as the difference of the differences)

In brief

An interaction exists when the effect of one factor depends on the level of the other. In a 2×2 table it is the difference of the differences: first form the difference between the rows in each column, then subtract the two differences from each other. Parallel lines in the chart mean 0.

An example by hand

One group practises with feedback, one without. Both solve easy and hard tasks. Cell means (points): with feedback 18 (easy) and 15 (hard), without feedback 17 and 9.

  1. Benefit of feedback for easy tasks: 18 − 17 = 1.
  2. Benefit for hard tasks: 15 − 9 = 6.
  3. Difference of the differences: 6 − 1 = 5. That is the interaction: feedback helps clearly more with hard tasks.
  4. Main effect of feedback: mean of the two benefits, (1 + 6) : 2 = 3.5. This value applies exactly to neither task type.

Whether the interaction is more than chance

The difference of the differences is at first only a number from the sample means. The two-way analysis of variance divides it by its standard error (with the error variance of all cells) and thus checks whether it stands out from chance. The result appears as its own row A × B in the table next to the main effects.

How it works in Statable

  1. Open the example "Does the reading training help?" (learning or examples) and look at the analysis "Training and gender together".
  2. The table of the two-way analysis of variance contains the row of the interaction (F, p and effect size). Below it the chart of the cell means shows the lines: parallel means none, crossed or fanned out means an interaction.
  3. The cell means can be evaluated by hand following the pattern above: difference of the differences and comparison with the chart.

What is often misunderstood

For specialists

In the model y = μ + αᵢ + βⱼ + (αβ)ᵢⱼ + ε the interaction in the 2×2 table is the contrast (μ₁₁ − μ₂₁) − (μ₁₂ − μ₂₂); with dummy coding it is the coefficient of the product term. Its F value has one degree of freedom in the numerator. With unequally filled cells Statable uses sums of squares of type III. An interaction can disappear through a transformation of the outcome (ordinal interaction); crossing lines (disordinal) do not.

Sources

Maxwell, S. E. & Delaney, H. D. (2004). Designing Experiments and Analyzing Data (2nd ed.), chapter on factorial designs. Czitrom, V. (1999). One-factor-at-a-time versus designed experiments. The American Statistician 53, 126-131.

Take away

  • Interaction in the 2×2 table = difference in one column minus difference in the other.
  • Parallel lines in the chart mean interaction 0; crossed or fanned-out lines mean an interaction.
  • The main effect is the mean of the simple effects and describes no level correctly when the interaction is clear.
  • Main effects and interaction are separate questions with separate tests.

Related

Open in Statable