Randomized Crossover and N-of-1 Trials
Within-person randomized treatment comparisons across periods, including prospectively planned multiple-crossover trials for one individual, with explicit period, sequence, carryover, and washout assumptions.
On this page
Within-person randomized treatment comparisons across periods, including prospectively planned multiple-crossover trials for one individual, with explicit period, sequence, carryover, and washout assumptions. Use when the condition and treatment effects can be assessed repeatedly and effects are sufficiently reversible over credible study periods.
Definition and scope
Within-person randomized treatment comparisons across periods, including prospectively planned multiple-crossover trials for one individual, with explicit period, sequence, carryover, and washout assumptions. The target population, use, and analysis remain protocol decisions; this card explains the choices and their consequences rather than approving a study.
Operational specification
Specify the stable condition, treatment onset and reversibility, randomized sequences, period length, washout, outcome timing, adherence, intercurrent events, and within-person target contrast. A randomized crossover trial is distinct from a case-crossover observational design; an N-of-1 trial is not merely a case report of sequential prescribing.
Analysis and diagnostics
Use an analysis matched to period and within-person correlation, check time trends and plausible carryover, and document missing periods and treatment discontinuation. An individual estimate concerns that person under the studied conditions; combining N-of-1 trials requires a specified population and hierarchical or other justified synthesis model.
When NOT to use and common errors
Avoid when treatments cure the condition, produce irreversible or long-lived effects, or when rapid disease progression makes periods incomparable. Do not claim absence of carryover from a low-power test or treat repeated observations as independent participants.
Worked example and implementation boundary
In a synthetic paired teaching summary, the same participant has average symptom score 6 during A periods and 4 during B periods, on a scale where lower is better. Calculate B minus A; this does not account for period trends or carryover. The within-person descriptive difference is -2 score units. Randomization-aware analysis and assumptions are still required. The code performs that explicitly stated calculation with synthetic inputs. It is not a complete fitted analysis and does not demonstrate the identification assumptions, estimate sampling uncertainty, or certify application in another population.
Data-source and reporting requirements
Preserve the provenance, dates, units, and observation rule for each input. Claims capture services and transactions under observable benefits; absence of a record is not proof that an event or resource use did not occur. EHR and registry measurements depend on the collection process and may miss care outside the system. Linked sources add reconciliation and selection questions. Primary collection can improve a missing domain but still requires valid measurement and follow-up. Report which of these limitations affects the stated use, which evidence supports the chosen inputs, and what remains uncertain.
Worked example
Scenario
In a synthetic paired teaching summary, the same participant has average symptom score 6 during A periods and 4 during B periods, on a scale where lower is better. Calculate B minus A; this does not account for period trends or carryover.
Dataset
Synthetic inputs with units defined in the scenario; no patient data.
| input | value |
|---|---|
| mean_a | 6 |
| mean_b | 4 |
Steps
Result
The within-person descriptive difference is -2 score units. Randomization-aware analysis and assumptions are still required.
Trade-offs
Code example
Executed example · Python 3.11.15 · 2026-11-01T02:04:28+00:00
Self-contained synthetic calculation for the worked example only. Inputs and units are listed in the dataset; output is the displayed scalar. This does not fit the full study/model, estimate uncertainty, or select an analysis for a real study.
mean_a = 6
mean_b = 4
result = mean_b-mean_a
assert abs(result - -2) < 1e-9
print(result)
Executed example · Rscript (R) version 4.6.1 (2026-06-24) · 2026-11-01T02:04:28+00:00
Self-contained synthetic calculation for the worked example only. Inputs and units are listed in the dataset; output is the displayed scalar. This does not fit the full study/model, estimate uncertainty, or select an analysis for a real study.
mean_a <- 6
mean_b <- 4
result <- mean_b-mean_a
stopifnot(abs(result - -2) < 1e-9)
print(result)
Illustrative example · execution not verified
Self-contained synthetic calculation for the worked example only. Inputs and units are listed in the dataset; output is the displayed scalar. This does not fit the full study/model, estimate uncertainty, or select an analysis for a real study. SAS source is illustrative until executed in a compatible SAS runtime.
data worked_example;
mean_a = 6;
mean_b = 4;
result = mean_b-mean_a;
put result=;
run;