TriaLab Power Studio · Method
2×2 crossover — difference between two means
Sizes a two-sequence, two-period crossover in which every subject receives both treatments and the comparison is made within subjects. The exact within-subject t test on N − 2 degrees of freedom, with the variability enterable as any of the four standard deviations a published crossover might report.
Also known as: crossover, cross-over, 2x2 crossover, AB/BA design, within-subject, washout, period difference, paired difference, sequence.
Maturity
Validated: 6 published examples from 5 independent publications (Chow, Shao, Wang & Lokhnygina 2017; Julious 2004; PASS; Phillips 1990; Senn 1993) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — Sizing to a confidence-interval width is well defined for this design, but no source on disk works an example of it, so it is not offered rather than offered unchecked.
- Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
- Duration: not offered — A crossover has periods, not calendar time: the washout and the two treatment periods fix the study’s length by protocol, and no part of the power function depends on it.
Size axes:
- Participants per sequence (the two sequences are of equal size) (
participants_per_sequence), Count
Inputs
Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.
Common to every method
- Significance level (alpha) (
alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention. - Target power (
power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.
The method’s own
- Difference between the treatment means (
mean_difference): a number, any finite number; default 5 The true difference the trial should be able to detect, in the units of the outcome: test minus reference. Because the comparison is made within each subject, this is a difference of treatment means and not of period means. - Standardised difference (
standardised_difference): a number, any finite number; typically 0.2 to 1.5 (within-subject effects run larger than Cohen’s d) The difference divided by the within-subject standard deviation — the quantity PASS prints as the effect size. Note which standard deviation: a crossover’s standardised difference is much larger than the same trial’s between-subject one, and mixing them up is how a crossover gets sized as though it were a parallel trial. - Reference treatment mean (
mean_reference): a number, any finite number The anticipated mean under the reference treatment, in the units of the outcome. - Test treatment mean (
mean_test): a number, any finite number The anticipated mean under the test treatment, in the units of the outcome. - Within-subject standard deviation (
sd_within): a number, above 0; default 10 The standard deviation of a single measurement about that subject’s own treatment mean — the square root of the within mean square error of the crossover ANOVA. This is the canonical form; the other three options convert to it. - SD of the period differences (
sd_period_differences): a number, above 0 The standard deviation of (period 2 − period 1) / 2 within a sequence, which is what a paired t-test of a previous crossover reports. Twice the variance of the within-subject error: sd_within = this × √2. - SD of the paired differences (
sd_paired_differences): a number, above 0 The standard deviation of (period 2 − period 1) itself, undivided — Chow’s σ_m. Half the variance of the within-subject error: sd_within = this ÷ √2. This and the field above differ by a factor of two in the variance and are easy to confuse; check which one your source reports. - SD of a single measurement (
sd_measurement): a number, above 0 The ordinary standard deviation of the outcome across subjects — the number a parallel-group publication reports. On its own it is not enough for a crossover; it needs the within-subject correlation beside it. - Within-subject correlation (
correlation): a number, above -1 and below 1; typically 0.4 to 0.9 (repeated measures on one subject correlate highly) The correlation between a subject’s two measurements. This is what the crossover buys: the within-subject SD is the measurement SD times √(1 − correlation), so a correlation of 0.8 more than halves the standard error against a parallel trial of the same size.
Sizes entered when another axis is solved for
- Participants per sequence (the two sequences are of equal size) (
participants_per_sequence): a whole number, at least 1 Participants per sequence (the two sequences are of equal size). Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Ways to express an input
Effect size — How far apart the two treatments are. The difference is what the test estimates; the other two forms are converted to it.
- Difference in means, the form’s default: The clinical quantity, in the units of the outcome. (fields
mean_difference) - Standardised difference: The difference over the within-subject SD. (fields
standardised_difference) - Both treatment means: Enter the two means and let the difference follow. (fields
mean_reference,mean_test)
Variability — How variable the outcome is within a subject. Published crossovers report this four different ways, and they differ by factors of √2 in both directions — pick the one your source actually gives.
- Within-subject SD, the form’s default: The canonical form; the crossover ANOVA’s residual SD. (fields
sd_within) - SD of the period differences: Halved differences, as a paired t-test reports them. (fields
sd_period_differences) - SD of the paired differences: Undivided differences — Chow’s σ_m. (fields
sd_paired_differences) - Measurement SD and correlation: What a parallel-group publication plus a repeatability study gives. (fields
sd_measurement,correlation)
Modifiers admitted
frame: Hypothesis framemultiplicity: Multiplicity (a family of tests)fdr: False-discovery rate (many features tested at once)dropout: Dropout
Published examples it reproduces (6)
Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).
| Source | Example | Solves for | Inputs | Published |
|---|---|---|---|---|
| Chow, Shao, Wang & Lokhnygina 2017, §3.3.4.2, Table 3.2 (printed p. 59) | Non-inferiority in a 2x2 crossover: SD of the paired differences 0.20, true difference -10%, margin 20%, alpha 0.05, 80% power => 14 subjects per sequence from Table 3.2 at theta = 1.00. Equation 3.17’s normal approximation gives 13 on the same page | Sample size | alpha = 0.05; frame = non_inferiority; margin = 0.2; mean_difference = -0.1; power_target = 0.8; sd_paired_differences = 0.2; spread expressed as paired_differences (with frame) |
participants_per_sequence = 14 ± 0 |
| PASS 2026 chapter 500, Example 2 (printed p. 500-10) | Difference 5, SD of the period differences 10 (so a within-subject SD of 14.14214), alpha 0.05, 90% power => a total of 172, which is 86 per sequence, at an achieved power of 0.90323 | Sample size | alpha = 0.05; mean_difference = 5; power_target = 0.9; sd_period_differences = 10; spread expressed as period_differences |
participants_per_sequence = 86 ± 0 |
| Julious 2004, Statist. Med. 23:1921-1986, p. 1933, via PASS 2026 chapter 500 Example 3 | Difference 10, within-subject SD 20, alpha 0.05, 90% power. Julious’s own answer is a total of 86; PASS records that 86 reaches 0.899997, just under the target, and returns 88. This kernel agrees with PASS: 44 per sequence | Sample size | alpha = 0.05; mean_difference = 10; power_target = 0.9; sd_within = 20 | participants_per_sequence = 43.5 ± 0.5 |
| PASS 2026 chapter 500, Example 1 (printed p. 500-7) | The power side of the same design: difference 10, SD of the period differences 10, a total of 20 (10 per sequence) => power 0.56201 | Power | alpha = 0.05; mean_difference = 10; participants_per_sequence = 10; sd_period_differences = 10; spread expressed as period_differences |
power = 0.56201 ± 0.000005 |
| Phillips 1990, J Pharmacokinet Biopharm 18:137-144, p. 142, via PASS 2026 chapter 520 Example 3 | Equivalence: within-subject SD 20%, limits +/-20%, true difference -15%, alpha 0.05, 70% power => a total of 152, which is 76 per sequence. The hardest row of Phillips’s table, where the true difference sits three quarters of the way to the limit | Sample size | alpha = 0.05; frame = equivalence; margin = 20; mean_difference = -15; power_target = 0.7; sd_within = 20 (with frame) |
participants_per_sequence = 76 ± 0 |
| Senn 1993, Cross-over Trials in Clinical Research, p. 217, via PASS 2026 chapter 520 Example 6 | Equivalence with no true difference: within-subject SD 45, limits +/-30, alpha 0.05, 80% power => a total of 40, which is 20 per sequence | Sample size | alpha = 0.05; frame = equivalence; margin = 30; mean_difference = 0; power_target = 0.8; sd_within = 45 (with frame) |
participants_per_sequence = 20 ± 0 |
Sources
- Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §3.3 and Table 3.2.
- Chow SC, Liu JP. Design and Analysis of Bioavailability and Bioequivalence Studies. New York: Marcel Dekker; 1999. (The linear model the 2x2 design’s means table comes from.).
- Phillips KF. Power of the two one-sided tests procedure in bioequivalence. J Pharmacokinet Biopharm. 1990;18(2):137-144. p. 142.
- Julious SA. Sample sizes for clinical trials with Normal data. Stat Med. 2004;23(12):1921-1986. p. 1933.
- Senn S. Cross-over Trials in Clinical Research. Chichester: John Wiley & Sons; 1993. p. 217 (2nd ed. 2002).
This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →