Sample sizes Flashcards
What is the standardised effect size/how is it calculated?
Δ = δ/σ δ = the observed effect i.e. difference between two population means (assumed 0 under null hypothesis) σ = standard deviation, assumed to be the same between the two groups
How is the sample size calculated for normally distributed continuous data, comparing two means?
n(per groups) = 2σ^2(z(1-α/2)+z(1-β)^2/δ^2
The standard deviation and effect size are the planned values
How is sample size calculated with a 5% significance and 80% power (simple formula)?
n(per group) = 16 (σ^2/δ^2) = 16/Δ^2
Planning values used
Change to 21 for 90% power
How does sample size change with smaller value of α (e.g. 0.01 instead of 0.05)
Increases
How does sample size change with a smaller value of β (larger power)?
Increases
How does sample size change with a smaller planned effect size?
Increases
How does sample size change with a smaller planned standard deviation?
Decreases
How is effect size calculated for binary outcome data?
planned effect size = π1-π2
Where π1-π2 is the anticipated difference in proportions?
How is sample size calculated for binary outcome data?
n(per group) = [π1(1-π1)+π2(1-π2)](z(1-α/2)+z(1-β)^2/δ^2
Methods for calculating sample size with an unknown standard deviation?
- Use first patients from trial to estimate SD –> sample size
- Estimate SD by a relatively small pilot investigation (20-40 per group), then use this value
- Specify the difference of interest directly in terms of unknown SD
How can the SD be calculated from the estimated treatment difference/95% CI?
Upper limit - Lower limit = 4xSE
SE = s/√n
–> SD=(SE(d)x√n)/√2
How is the sample size calculated for a prevalence study?
SE(p) = √p(1-p)/N
SEplan = Upper limit - lower limit (CI)/2x1.96
πplan used in place of p
N = πplan(1-πplan)/SE^2plan
What are the four key ingredients for a sample size calculation for a two group RCT?
- Type I error
- Type II error
- The variability of the outcome
- The anticipated or target effect size