Sample Size for Paired t Test

 

Menu location: Analysis_Sample Size_Paired t.

 

This function gives you the minimum number of pairs of subjects needed to detect a true difference DELTA in population means with power POWER and two sided type I error probability ALPHA (Dupont, 1990; Pearson and Hartley, 1970).

 

Information required

  • POWER: probability of detecting a true effect.
  • ALPHA: probability of detecting a false effect (two sided: double this if you need one sided).
  • DELTA: difference in population means.
  • SD: estimated standard deviation of paired response differences.

 

Practical issues

  • Usual values for POWER are 80%, 85% and 90%; try several in order to explore/scope.
  • 5% is the usual choice for ALPHA.
  • SD is usually estimated from previous studies.
  • If possible, choose a range of mean differences that you want to have the statistical power to detect.

 

Technical validation

The estimated sample size n is calculated as the solution of:

- where d = delta/sd, α = alpha, β = 1 - power and tv,p is a Student t quantile with v degrees of freedom and probability p. n is rounded up to the closest integer, then adjusted if necessary to the smallest n for which the power calculated from the non-central t distribution reaches POWER.

 

Example

Suppose you plan a study of peak expiratory flow rate (PEFR) before and after a walk on a cold day, like the one in the paired t test example but looking for a smaller effect. You want to detect a mean fall of 20 L/min with 80% power at a two sided alpha of 5%, and from that earlier study you expect the standard deviation of the paired differences to be about 35 L/min. The figures are invented for this illustration.

 

To run this in StatsDirect select Paired t from the Sample Size section of the Analysis menu. Enter 20 as the difference of population mean from zero, 35 as the standard deviation of the paired differences, 80% as the power and 5% as alpha. Then run it again with 90% as the power.

 

For this example:

 

Sample size for a paired or single sample Student t test

 

Alpha = 0.05

Power = 0.8

Difference of mean from zero = 20

Standard deviation = 35

Estimated minimum sample size = 27 pairs

Degrees of freedom = 26

 

and with 90% power:

 

Alpha = 0.05

Power = 0.9

Difference of mean from zero = 20

Standard deviation = 35

Estimated minimum sample size = 35 pairs

Degrees of freedom = 34

 

Twenty-seven pairs of measurements would give an 80% chance of detecting a true mean fall of 20 L/min, and 35 pairs a 90% chance. The size is the smallest number of pairs for which the power of the paired t test, calculated from the non-central t distribution, reaches the power asked for.