2×2 crossover equivalence test: design, analysis and example
A 2×2 crossover design tests two treatments, a test (T) and a reference (R), on the same units in two periods. Half the units get R first and T second (sequence RT); the other half get T first and R second (sequence TR). Each unit acts as its own control, so the large differences between units drop out, and the balanced order lets the analysis separate the treatment effect from any change between periods. The crossover equivalence test applies TOST to the treatment difference estimated this way, to show that T and R give the same mean within a margin.
When to use it
- Units differ a lot from each other but each can receive both treatments: machines, presses, test vehicles, kilns, lines.
- Something may change between the two periods, such as a new insert lot, the season or wear, and you cannot run both treatments at the same time on one unit.
- The effect of the first treatment can be removed before the second period starts, by flushing, cleaning, a reset or a rest period. This is the washout.
If each unit can only receive one treatment, use the 2-sample equivalence test. If both measurements are taken at once with no period effect, as in a gauge comparison, use the paired equivalence test.
How it works
Model each response as unit + period + treatment + error. For unit i, take half the difference between its two periods:
pdᵢ = (yᵢ,period 1 − yᵢ,period 2) / 2The unit's own level cancels. In sequence RT the expected value of pd is (R − T)/2 plus half the period effect; in sequence TR it is (T − R)/2 plus the same period term. Subtracting the sequence means removes the period term:
T − R = mean(pd | TR) − mean(pd | RT)
SE = s_pd · √(1/n_RT + 1/n_TR), df = n_RT + n_TR − 2where s_pd is the pooled standard deviation of pd within sequences. Adding the two means instead estimates the period effect (period 1 minus period 2). The equivalence test is then TOST on T − R: equivalence is shown when the 90% confidence interval lies inside the limits (δ_L, δ_U), set in advance.
The analysis assumes no carryover, meaning the first treatment does not affect the second period. A test of carryover compares the unit totals between sequences, but it compares units with units and has little power. A proper washout is the real protection.
Example
A machining plant wants to switch its turning lathes to a cheaper coolant (T) if tool life stays within ±20 parts per insert edge of the current coolant (R), about ±5%. Lathes differ in age and spindle condition, so twelve lathes are used as their own controls. Six run R for one week and then T (after the sump is drained and flushed), and six run T first. The response is the mean number of parts per insert edge during the week:
| Lathe | Sequence | Period 1 | Period 2 | pd |
|---|---|---|---|---|
| 1 | RT | 401 | 392 | 4.5 |
| 2 | RT | 412 | 423 | −5.5 |
| 3 | RT | 373 | 387 | −7.0 |
| 4 | RT | 342 | 352 | −5.0 |
| 5 | RT | 360 | 382 | −11.0 |
| 6 | RT | 345 | 367 | −11.0 |
| 7 | TR | 399 | 408 | −4.5 |
| 8 | TR | 418 | 455 | −18.5 |
| 9 | TR | 375 | 390 | −7.5 |
| 10 | TR | 352 | 377 | −12.5 |
| 11 | TR | 403 | 418 | −7.5 |
| 12 | TR | 422 | 413 | 4.5 |
The mean of pd is −5.833 in sequence RT and −7.667 in sequence TR, and the pooled s_pd is 6.791 with 10 degrees of freedom.
| Quantity | Estimate | SE | t | P |
|---|---|---|---|---|
| T − R | −1.83 | 3.92 | ||
| Lower test, T − R ≤ −20 | 4.63 | < 0.001 | ||
| Upper test, T − R ≥ +20 | −5.57 | < 0.001 | ||
| Period 2 − period 1 | 13.5 | 3.92 | 3.44 | 0.006 |
| Carryover (sequence totals) | −1.64 | 0.13 |
The 90% confidence interval for T − R is −1.83 ± 1.812 × 3.92, from −8.9 to 5.3 parts, well inside ±20. The cheaper coolant is equivalent in tool life (p < 0.001).
How to read the results
- The coolants are equivalent. The cheaper coolant may cost at most about 9 parts per edge, a little over 2%, and may even be slightly better.
- Something improved in week two. After allowing for the coolant, tool life was about 13.5 parts higher in period 2, perhaps because of a new insert lot. Both lines in the chart rise. Because each coolant appears equally in each period, this shift cancels out of the treatment estimate.
- The design paid for itself. The lathes' average tool lives have a standard deviation of about 28 parts. Treating the 24 results as two independent groups gives a 90% interval of −22.5 to 18.8 parts, which fails the ±20 margin. A simple paired analysis that ignores the period effect gives −11.8 to 8.1 parts, wider than the crossover result because the period shift inflates the differences.
- No sign of carryover, but with p = 0.13 on a low-power test, that statement leans on the drain-and-flush washout as much as on the data.
Common mistakes
- Skipping the washout. If residue from the first coolant affects the second week, the treatment estimate is biased and the analysis cannot fix it.
- Unbalanced or non-random sequences. Assign units to RT and TR at random, in equal numbers, so that the period effect cancels.
- Analyzing as a paired t test. It ignores the period effect, which inflates the error or, with unequal sequences, biases the estimate.
- Using a 95% interval. TOST at 5% matches a 90% interval.
- Ignoring dropouts. A unit with only one period contributes nothing to pd. Plan a spare unit or two.
Frequently asked questions
What is a 2×2 crossover design?
Two treatments, two periods and two sequences (RT and TR). Each unit receives both treatments, in an order chosen at random, so it serves as its own control.
What is carryover and how do I avoid it?
Carryover is an effect of the first-period treatment that lasts into the second period. Avoid it with a washout long or thorough enough to return each unit to its normal state before period 2.
Can the equivalence limits be a ratio, such as 90% to 111%?
Yes. Analyze the logarithms of the responses, test the log difference against ln(0.90) and ln(1.11), and convert the interval back to a ratio. This suits responses where effects scale with the level.
Why not just run both coolants on different lathes at the same time?
Because lathe-to-lathe differences would then be part of the comparison. Here they are several times larger than the effect of interest, so a parallel study would need many more lathes.