9sample Size Determination
9sample Size Determination
2 2 2 2
• Use σ1 , σ2 or estimate using s1 and s2
B. Sample size for estimating a
difference in two proportions
• Aim: Estimate p1-p2
• Want: within ± d units
where d = Zα/2•SE
(95% CI of width = w = 2d)
• If equal sample sizes in both groups, then:
1 – α = Confidence 1 – β = Power
• Type I error (α) = The probability of
rejecting Ho when it is true
∆ = /μ1-μ2/
λ =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-)
Where
∆ = p1-p2
• Let p1=0.35, p2=0.25, and Δ=p1-p2=0.35-
0.25 =0.10
P2
P1 P1 = P2 * RR
1 P2
P2
OR
Example
• A case-control study to compare the efficacy of
a vaccine for the prevention of child-hood
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
Summary
• Sample size calculations depend on a
number of assumptions:
– the hypothesized difference of interest, Δ
– the probability of Type I error (α)
– the probability of Type II error (β)
– the variance
• Choice of sample size depends on a
balance of reasonable assumptions, time,
effort, and expense
• Sample sizes provide a minimum estimate
of the desired sample sizes for the study