2sample Size Determination Jan 2023
2sample Size Determination Jan 2023
2sample Size Determination Jan 2023
#02
Wakgari Deressa, PhD.
Professor of Epidemiology & Public Health
Department of Preventive Medicine
School of Public Health, AAU
PRECISION COST
∆
We use a sample
mean as a point
estimate of
∆ = /μ1-μ2/
The means and variances of the two
respective groups are (µ1, 21) and (µ2, 22).
Example
1. Determine the sample sizes required to detect a difference
of 5 mm in mean blood pressure between individuals
receiving placebo and those receiving drug with α =5% and
power of 0.80
• Assume σ1=σ2 = 15 mm in each group.
• We are interested in testing:
Ho: μ1- μ2 = 0, HA: μ1- μ2 = 5
λ =n2/n1
In some text books, λ = k = r
3. Suppose we anticipate twice as many non
OC users as OC users entering the study
using the previous example. Determine the
sample size to achieve an 80% power in the
study using α=0.05. λ = 2.
n1 = (15.342+18.232/2)(1.96+0.84)2/(5.42)2
= 108 OC users
and n2 = 2(108) = 216 non-OC users.
C. Comparison between two
proportions (Equal sample sizes)
• To test the hypothesis,
Ho: p1-p2 vs HA: p1-p2 ≠ 0,
|p1-p2| = ∆
with α and power (1-)
General formula using power of a study to
determine sample size (Comparative CS, CC,
Cohort) proportions
Where
∆ = p1-p2
P1 is the proportion in group 1
P2 is the proportion in group 2
Z/2 is the quintile of the standard normal distribution for type I error
Z is the quintile of the standard normal distribution for type II error/power
n1 is the sample size for group 1
n2 is the sample size for group 2
Example
• Let p1=0.35, p2=0.25, and Δ=p1-p2=0.35-
0.25 =0.10
n1 =
(2.81 2 0.65 0.35 + 1.28 0.6 0.4 + 0.7 0.3 )
2
759
(0.6 - 0.7)2
Comparison of two proportions
• A better (more conservative) suggestion for
sample size is:
2
n 4
n1adj. = 1 + 1 +
4 n p1 - p2
• Adjusted/conservative sample size is:
2
759 4
n1adj = 1 + 1 + = 836
4 759 0.6 - 0.7
D. Comparison between two
proportions (Unequal sample sizes)
2
1 P2 (1 - P2 )
Z 1 + P(1 - P) + Z P1 (1 - P1 ) +
2 r r
n1 =
(P1 - P2 )2
Where P1 + rP2
P=
1+ r
Where r is the allocation ratio of group 2 to group 1, i.e., n2:n1
( n2 = r n1)
P2
P1 = P1 = P2 * OR
1 - P2
P2 +
OR
Example
• A case-control study to compare the efficacy of a
vaccine for the prevention of childhood
tuberculosis with a placebo. Let the proportion of
unvaccinated children is 30%, with an estimated
OR of at least 2.
P2 = 0.3, q2 = 0.7, OR = 2.0
P1 = 0.3/(0.3+0.7/2) = 0.462
• With equal cases and controls, what sample size
is required to detect, with 80% power and at α
5%?
= 140 in each group
Specific Formula: Cohort & Intervention
(z1 + z2)2 2 p (1- p)
n=
(p1–p2)2
Where
n = Sample size in each group
z1 = 1.96 for 95% confidence level
p 1 + p2
p = = average of p1 and p2
2
p 1 –p 2 = Minimum meaningful difference in proportions between
exposed and control groups 60
Specific formula: Case-Control
( z1 + z 2) * 2 p(1 - p) c + 1
2
n=
( p 2 - p1) 2
2c
p1= Expected frequency of exposure in cases
p2 =Expected frequency of exposure in controls
p = average of p1 and p2
c = ratio of controls to cases
Estimation of Single Rate
n ═ (Zα/2)2*r
d2
• The maternal mortality rate in a country is expected to
be 70 per 10,000 live births. A survey is planned to
determine the maternal mortality rate with a 95% CI of
60 to 80 per 10,000 live births. The required n would
be:
n ═ (Zα/2)2*r = (1.96)2 (70/10000) ═ 27,000 live births
d2 (10/10000)2
Using power of a study to
determine sample size
• Comparison between two rates
68
Thanks!