Sample Size for Unpaired t Test

 

Menu location: Analysis_Sample Size_Unpaired t.

 

This function gives you the minimum number of experimental 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 for within group differences.
  • M: number of control subjects per experimental subject.

 

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 differences between means 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, m is the number of control subjects per experimental subject, 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 trial in which a new treatment is compared with placebo and the outcome is systolic blood pressure at the end of treatment. A reduction of 5 mmHg would be worth detecting, and from earlier studies the standard deviation of systolic blood pressure among such patients is about 12 mmHg. You want 90% power at a two sided significance level of 5%, with one control for each treated patient. The figures are invented for this illustration.

 

To run this in StatsDirect select Unpaired t from the Sample Size section of the Analysis menu. Enter 5 as the difference in population means, 12 as the estimate of population SD, 1 as the number of controls per experimental subject, 90% as the power and 5% as alpha.

 

For this example:

 

Sample size for an unpaired two sample Student t test

 

Alpha = 0.05

Power = 0.9

Difference between means = 5

Standard deviation = 12

Controls per experimental subject 1

 

Estimated minimum sample size = 123 experimental subjects and 123 controls.

 

Degrees of freedom = 244

 

So 123 patients would be needed in each group, 246 in all; the power with these numbers is just over 90%. If two controls were recruited for each treated patient, entering 2 as the number of controls per experimental subject would give:

 

Controls per experimental subject 2

 

Estimated minimum sample size = 92 experimental subjects and 184 controls.

 

Degrees of freedom = 274

 

Fewer treated patients would then be needed (92 rather than 123) but more patients in all (276 rather than 246): for a given total, groups of unequal size have less power, so an unequal ratio is usually chosen only when experimental subjects are scarce or costly.