TriaLab Power Studio · Method
Williams crossover — pairwise differences between three or more treatments
Sizes a higher-order crossover in which every participant receives all of the treatments in a Latin-square order balanced for first-order carryover. Every pairwise difference is estimated with the same standard error and the same degrees of freedom, so one sample size answers for all of them; the design is sized against the smallest difference worth detecting.
Also known as: Williams design, higher-order crossover, 6x3 crossover, 4x4 crossover, Latin square, carryover, three treatments, multi-period crossover, pairwise differences.
Maturity
Validated: 4 published examples from 2 independent publications (Chow, Shao, Wang & Lokhnygina 2017; PASS) 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 number of treatment periods and washouts fixes the study’s length by protocol, and no part of the power function depends on it.
Size axes:
- Participants per sequence (all 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
- Number of treatments (
treatments): a whole number, at least 2; default 3; typically 3 to 4 (three and four are the common Williams designs) How many treatments each participant receives, one per period. Three and four are the usual bioequivalence designs. The number of sequences follows from this and is reported beside the answer: an even number of treatments gives that many sequences, an odd number gives twice as many, so three treatments means six sequences. - Smallest pairwise difference to detect (
mean_difference): a number, any finite number; default 0.5 The smallest difference between any two treatment means that the trial should be able to detect, in the units of the outcome. The smallest, not the largest: every pairwise comparison here has the same standard error, so the design is driven by the closest pair. - Standardised smallest difference (
standardised_difference): a number, any finite number The smallest pairwise difference divided by the standard deviation of the paired differences. - SD of the paired differences (
sd_paired_differences): a number, above 0; default 3.5 The standard deviation of one subject’s difference between two treatments — Chow’s σ_d, and the number PASS asks for as “Standard Deviation”. This is the canonical form; the other two convert to it. - Within-subject standard deviation (
sd_within): a number, above 0 The standard deviation of a single measurement about that subject’s own treatment mean. A difference of two such measurements has twice the variance, so the paired-difference SD is this times √2. - SD of a single measurement (
sd_measurement): a number, above 0 The ordinary standard deviation of the outcome across subjects, as a parallel-group publication reports 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 two of a subject’s measurements. The paired-difference SD is the measurement SD times √(2(1 − correlation)), so a correlation of 0.8 makes it 0.63 of the measurement SD instead of 1.41 of it.
Sizes entered when another axis is solved for
- Participants per sequence (all sequences are of equal size) (
participants_per_sequence): a whole number, at least 1 Participants per sequence (all 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 — The smallest pairwise treatment difference worth detecting.
- 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 paired-difference SD. (fields
standardised_difference)
Variability — How variable a within-subject treatment difference is. The three forms differ by factors of √2, which is the commonest way to size a crossover twice as large as it needs to be.
- SD of the paired differences, the form’s default: The canonical form — Chow’s σ_d. (fields
sd_paired_differences) - Within-subject SD: The crossover ANOVA’s residual SD. (fields
sd_within) - 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 (4)
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.5.4 (printed p. 66) | A 6x3 Williams design comparing the cardiovascular safety of three treatments with true means 0.20, 0.15 and 0.25, so a smallest pairwise difference of 0.05, and a paired-difference SD of 0.10. Alpha 0.05, 80% power, no multiplicity adjustment => 6 per sequence. Equation 3.21’s normal approximation gives 5.23 | Sample size | alpha = 0.05; mean_difference = 0.05; power_target = 0.8; sd_paired_differences = 0.1; treatments = 3 | participants_per_sequence = 6 ± 0 |
| PASS 2026 chapter 501, Example 2 (printed p. 501-9) | The same design solved by the exact noncentral t: 6 per sequence, 36 in total, at an achieved power of 0.8271 | Power | alpha = 0.05; mean_difference = 0.05; participants_per_sequence = 6; sd_paired_differences = 0.1; treatments = 3 | power = 0.8271 ± 0.00005 |
| PASS 2026 chapter 501, Example 1 (printed p. 501-6) | Three treatments, smallest difference 0.5, paired-difference SD 3.5, an overall alpha of 0.05 Bonferroni-adjusted across the 3 pairwise comparisons, 30 per sequence (180 in total) => power 0.31097 | Power | alpha = 0.05; mean_difference = 0.5; participants_per_sequence = 30; procedure = bonferroni; sd_paired_differences = 3.5; tests = 3; treatments = 3 (with multiplicity) |
power = 0.31097 ± 0.000005 |
| PASS 2026 chapter 501, Example 1, last row (printed p. 501-6) | The same design at 100 per sequence (600 in total) => power 0.86365. The far end of PASS’s table, where the Bonferroni divisor has had the most room to go wrong | Power | alpha = 0.05; mean_difference = 0.5; participants_per_sequence = 100; procedure = bonferroni; sd_paired_differences = 3.5; tests = 3; treatments = 3 (with multiplicity) |
power = 0.86365 ± 0.000005 |
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.5, printed pp. 63-66.
- Williams EJ. Experimental designs balanced for the estimation of residual effects of treatments. Aust J Sci Res A. 1949;2(2):149-168.
- Chow SC, Liu JP. Design and Analysis of Bioavailability and Bioequivalence Studies. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2009. (Construction of Williams designs from Latin squares.).
- Jones B, Kenward MG. Design and Analysis of Cross-Over Trials. London: Chapman & Hall; 1989.
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 →