Learn / Biostatistics / Sample size and power
Clusters, non-inferiority, attrition and writing the section
14 minute read · 6-question quiz
What you will learn
Apply the design effect for cluster-randomised and cluster-sampled studies
Explain non-inferiority and equivalence designs and calculate the sample size
Inflate sample size for loss to follow-up and write a clear sample size paragraph
Cluster designs and the design effect
When you randomise or sample groups (villages, schools, clinics), people in the same group resemble each other. The intracluster correlation coefficient (ICC, ρ) measures this: the share of total variation that lies between clusters. Typical values: 0.01 to 0.05 for many outcomes; higher for infectious disease and behaviour.
Observations within a cluster carry less independent information than the same number of independent people. The design effect (DEFF) says how much to inflate the sample:
DEFF = 1 + (m - 1)ρ
where m is the average cluster size. Multiply the sample size for an individually randomised trial by DEFF.
Non-inferiority and equivalence
A superiority trial asks 'is the new treatment better?'. Often the new treatment is cheaper, safer or simpler and only needs to be not unacceptably worse.
- Non-inferiority: the new treatment is not worse than the standard by more than a pre-specified margin (δ).
- Equivalence: not worse and not better than δ (two-sided).
The hypotheses are reversed: H0 says the new treatment is worse by at least δ; rejecting it shows non-inferiority. It is tested by checking whether the lower limit of the CI for the difference lies above −δ.
Inflating for losses
Some participants will drop out, withdraw or be missed. If you expect a fraction L lost, divide by 1 - L:
n_enrol = (n_analysis)/(1 - L)
With 294 needed per arm and 15% loss: 294 / 0.85 = 345.9, so 346 per arm. Never add 15% (294 × 1.15 = 338), because that undershoots.
Other adjustments
- Interim analyses with stopping rules slightly raise the needed sample (group sequential designs, chapter 10).
- Multiple primary outcomes or arms need α adjusted or the largest n.
- Unequal allocation (2:1) increases total n slightly but may improve recruitment or safety data.
- Crossover designs need fewer participants but need washout and stable disease.
Summary
Cluster designs need DEFF = 1 + (m − 1)ρ times the individually randomised sample; more clusters beat bigger clusters.
Non-inferiority tests whether the CI lies above −δ; the margin must be justified clinically.
Inflate for dropouts by dividing by (1 − loss), not by adding a percentage.
Write the calculation transparently, with sources and a sensitivity analysis.
Check your understanding
Draft study guide. Spotted an error or something unclear? Tell us at hello@scintria.com. This is educational material, not clinical or regulatory advice.