Power and Sample Size Calculations
Introduction
- Power and sample size calculations are crucial for research studies.
- Statistical power indicates the chance of detecting a statistically significant effect when one exists.
- It's standard practice to report sample size calculations in research publications.
Basic Concepts
- Collaboration between statisticians and researchers is essential for sample size calculation.
- Key questions to consider:
- Study groups or treatment arms.
- Expected data distribution.
- Anticipated means, medians, and ranges.
- Variation in measurements.
- Costs.
- Maximum numbers of subjects and sites.
- Consequences of Type I and Type II errors.
- Type I error: Rejecting the null hypothesis when it is true.
- Type II error: Failing to reject the null hypothesis when it is false.
- Statistical power (1−b): Probability of rejecting the null hypothesis when the alternative hypothesis is true.
- Desirable to have at least 80% power.
- Sample size calculations can:
- Calculate power for a fixed sample size.
- Calculate the required sample size for a fixed power.
Notational Conventions
- Greek letters represent population parameters (e.g., population mean μ, variance σ2).
- Latin letters represent sample statistics (e.g., sample mean x, variance s2).
Review of the Normal and t-Distributions
- Normal distribution (bell-shaped curve) is often used to model continuous data.
- Standard Normal distribution has a mean of zero and a variance of one.
- Zc represents the c⋅100 percentile of the standard Normal distribution.
- t-distribution is used when the population variance is unknown.
- Tf,c represents the c⋅100 percentile of the t-distribution with f degrees of freedom.
Sample Size Calculations for Precision in Confidence Interval Construction
- Calculations depend on the chosen significance level α but not on power.
- Sample size required to construct a confidence interval of width w:
- Known variance: n≥4Z1−α/22σ2/w2
- Unknown variance (using t-distribution): solve for n in 2T<em>n−1;1−α/2s</em>h/n=w
Confidence Intervals for Binomial Proportions
- Sample size required to construct a confidence interval of width w for an unknown binomial proportion p:
- n≥4Z<em>1−α/22p</em>h(1−ph)/w2
Sample Size Calculations for Hypothesis Tests: One Sample of Data
- Specific alternative hypothesis is required.
Calculations for Continuous Data Regarding a Single Population Mean
- Hypotheses: H<em>0:μ=μ</em>0 vs. H<em>1:μ=μ</em>1
- Required sample size: n=(Z<em>1−α/2+Z</em>1−β)2σ2/d2 where d=μ<em>1−μ</em>0
- For a one-sided test, replace Z<em>1−α/2 by Z</em>1−α
Calculations for Binary Data Regarding a Single Population Proportion
- Hypotheses: H<em>0:p=p</em>0 vs. H<em>1:p=p</em>1
- Required sample size: n=[Z<em>1−α/2p</em>0(1−p<em>0)+Z</em>1−βp<em>1(1−p</em>1)]2/d2 where d=p<em>1−p</em>0
Two-Stage Designs for a Single Population Proportion
- Sequentially enroll subjects in two stages, stopping early if evidence is not promising.
Sample Size Calculations for Hypothesis Tests: Paired Data
- Pairing may result from before-and-after treatment measurements or matched characteristics.
Calculations for Paired Continuous Data
- Hypotheses: H<em>0:μ</em>d=μ<em>0 vs. H</em>1:μ<em>d=μ</em>1
- Required sample size: n=(Z<em>1−α/2+Z</em>1−β)2σ<em>d2/d2 where d=μ</em>1−μ0
Calculations for Paired Binary Data
- Hypotheses: H<em>0:p</em>10−p<em>01=0 vs. H</em>1:p<em>10−p</em>01=d
- given p<em>10+p</em>01=q
- Required sample size: n=[Z<em>1−α/2q+Z</em>1−βq−d2]2/d2
Sample Size Calculations for Hypothesis Tests: Two Independent Samples
- Estimating the difference of two population means or proportions.
Calculations for Continuous Data With Equal Variances and Equal Sample Sizes
- Hypotheses: H<em>0:μ</em>Y−μ<em>X=d</em>0 vs. H<em>1:μ</em>Y−μ<em>X=d</em>1
- Required sample size in each group: n<em>e=2(Z</em>1−α/2+Z<em>1−β)2σ</em>c2/d2 where d=d<em>1−d</em>0
Calculations for Continuous Data With Unequal Variances or Unequal Sample Sizes
- Unequal variances: n<em>e=(Z</em>1−α/2+Z<em>1−β)2(σ</em>X2+σY2)/d2
- Unequal sample sizes: n<em>X=(Z</em>1−α/2+Z<em>1−β)2(σ</em>X2+σ<em>Y2/l)/d2 where l=n</em>Y/nX
Calculations for Two Independent Samples of Binary Data
- Hypotheses: H<em>0:p</em>B−p<em>A=0 vs. H</em>1:p<em>B−p</em>A=d
- Required sample size in each group: n<em>e=[Z</em>1−α/2u<em>0+Z</em>1−βu1]2/d2
- u0=2q(1−q)
- u<em>1=q</em>A(1−q<em>A)+q</em>B(1−qB)
Advanced Methods and Other Topics
- Advanced methods and alternative statistics exist for more accurate sample size calculations.
Several Advanced Study Designs
- Multiarm clinical trials: Bonferroni correction.
- Group sequential trials: Interim analyses.
- Survival analysis: Kaplan-Meier, Cox regression.
- Group randomized trials (GRTs): Intraclass correlation (ICC).
- Generalized linear models (GLMs): Complex calculations, simplified methods for approximation.
Retention of Subjects
- Plan for a 10% to 20% rate of retention loss.
- Inflate the calculated sample size by a factor of 1/(1−r)2
Statistical Computing
- Statistical software facilitates rapid calculations and numerical methods.
- Data simulation, power graphing.
Conclusion
- Statistical power is key in sample size calculations.
- Collaboration between statisticians and researchers is rewarding.