Durgical
EN
Open the app

Statistical analysis plan

  • Concept

Writing down, before seeing the data, how they will be cleaned, described and analysed, so the result does not depend on what suits.

Updated

What it is

The statistical analysis plan describes, before the data are opened, the cleaning, the descriptive analysis, the primary analysis (the test or model for the primary question), the secondary analyses, subgroups, handling of missing data and sensitivity analyses. Pre-specifying it separates confirmatory from exploratory work and prevents trying many options until a favourable p value turns up.

Key facts

  • Chance of at least one false positive with m independent tests at α = 0.05: 1 − 0.95^m.
  • Bonferroni correction: α per test = overall α / number of tests.

Worked example

  1. Data: a database of 1 200 records. The range check finds 18 impossible ages (for example, 210 years).
  2. Against the source, 15 are corrected and 3 are set as missing; then the database is locked.
  3. Plan fixed in the protocol: intention to treat; primary outcome analysed as a difference in proportions with 95 % CI.
  4. Four secondary outcomes with Bonferroni correction: α = 0.05 / 4 = 0.0125 for each.
  5. If 10 unplanned subgroups were tested at α = 0.05: P(at least 1 false positive) = 1 − 0.95¹⁰ = 1 − 0.599 ≈ 40 %.
  6. So the plan limits subgroups to 2 pre-specified ones, each with its own interaction test.
  7. Reading: a plan written before seeing the data separates confirmatory from exploratory work and avoids picking the most convenient result.

Stages of the analysis plan

StageWhat is doneExample
CleaningRanges, consistency, duplicates, missing valuesAn age of 210 checked against the source
DescriptiveSample characteristics by groupTable 1 with means, medians and percentages
PrimaryAnswers the primary questionDifference in proportions with 95 % CI
SecondaryOther outcomes, with control of multiplicity4 outcomes at α = 0.0125
SensitivityChecks robustness to assumptionsWorst and best case for missing data
ExploratoryGenerates hypotheses, does not confirm themUnplanned subgroups

Markers

  • SAP
  • ITT
  • 95 % CI
  • Bonferroni

In practice

  • When reading a trial, compare the published analysis with the registered one: a changed primary outcome is a warning sign.
  • A statistician on the team from the protocol stage prevents plans that the data will not be able to answer.

Common pitfalls

  • Deciding the analysis after seeing the data.
  • Presenting a significant unplanned subgroup as the main finding.
  • Not planning how missing data will be handled.

Test yourself

Think of the answer, then tap the question to see it.

Why is the analysis plan pre-specified?

To separate confirmatory from exploratory work and avoid choosing, among many analyses, the one with the most favourable result.

With 5 tests and an overall α of 0.05, what α does each use under Bonferroni?

0.05 / 5 = 0.01.

With 3 independent tests at α = 0.05, what is the chance of at least one false positive?

1 − 0.95³ = 1 − 0.857 ≈ 14 %.

Which guideline describes the content of a trial's statistical analysis plan?

The 2017 guidelines for the content of statistical analysis plans in clinical trials, listed on EQUATOR.

Add to my cards (4)

Connections

← All of epidemiology

Educational content on epidemiological and statistical methods; the examples use made-up numbers to teach the calculation. Not a clinical or legal guide: current Colombian rules are in the official sources.

Sources: Guidelines for the Content of Statistical Analysis Plans in Clinical Trials (EQUATOR Network, 2017); E9 Statistical Principles for Clinical Trials (U.S. Food and Drug Administration, 1998).

Spotted a mistake?We are always improving for the community. Tell us what is wrong and our team will review it.Report a mistake

Representative model, for educational purposes only.