Sample Size Formula - Lab CRP VI
Sample Size Formula - Lab CRP VI
2
𝑍1−𝛼 2 𝑝𝑞
𝑛=
𝑑2
2
𝑍1−𝛼 2 𝑠
𝑛=
𝑑
2
𝑍1−𝛼 2 2𝑝𝑞 +𝑍1−𝛽 𝑝 1 𝑞 1 +𝑝 2 𝑞 2
𝑛1 = 𝑛2 = for two-sided
𝑝1 − 𝑝2 2
2
𝑍1−𝛼 2𝑝𝑞 +𝑍1−𝛽 𝑝 1 𝑞 1 +𝑝 2 𝑞 2
𝑛1 = 𝑛2 = for one-sided
𝑝1 − 𝑝2 2
Alternative method:
Suppose we do not determine p1 – p2 (directly), instead we will use relative risk (RR) from
previous study to determine p1 – p2 (indirectly). After determining the p2 from previous
study or a pilot study, we can calculate p1, thus we will have result for p1 – p2
𝑝1
𝑅𝑅 =
𝑝2
Analytical study of an unpaired-dichotomous variable (case control study)
2
𝑍1−𝛼 2 2𝑝𝑞 +𝑍1−𝛽 𝑝 1 𝑞 1 +𝑝 2 𝑞 2
𝑛1 = 𝑛2 = for two-sided
𝑝1 − 𝑝2 2
2
𝑍1−𝛼 2𝑝𝑞 +𝑍1−𝛽 𝑝 1 𝑞 1 +𝑝 2 𝑞 2
𝑛1 = 𝑛2 = for one-sided
𝑝1 − 𝑝2 2
Alternative method:
Suppose we do not determine p1 – p2 (directly), instead we will use odds ratio (OR) from
previous study to determine p1 – p2 (indirectly). After determining the p2 from previous
study or a pilot study, we can calculate p1, thus we will have result for p1 – p2
𝑝1 𝑞1 𝑝1 𝑞2 𝑝1 1 − 𝑝2
𝑂𝑅 = = =
𝑝2 𝑞2 𝑝2 𝑞1 𝑝2 1 − 𝑝1
2
𝑍1−𝛼 2 +𝑍1−𝛽 𝑠
𝑛1 = 𝑛2 = 2 × for two-sided
𝑥 1 −𝑥 2
2
𝑍1−𝛼 +𝑍1−𝛽 𝑠
𝑛1 = 𝑛2 = 2 × for one-sided
𝑥 1 −𝑥 2
2
𝑍1−𝛼 +𝑍1−𝛽 𝑠
𝑛1 = 𝑛2 = for one-sided
𝑥 1 −𝑥 2
2
𝑍1−𝛼 2 +𝑍1−𝛽
𝑛= 1+𝑟 +3 for two-sided
0.5 𝑙𝑛
1−𝑟
2
𝑍1−𝛼 +𝑍1−𝛽
𝑛= 1+𝑟 +3 for one-sided
0.5 𝑙𝑛
1−𝑟
Notes
1. Do not forget to consider the non-response or dropout!
2. For descriptive study of a dichotomous variable, if the researcher were unable to find p
(proportion) from previous study or performing a pilot study, she could assign p = 0.5,
thus it would yield maximum result for pq. Remember to make sure npq 5 by
choosing appropriate d (precision).
3. For descriptive study of a continuous variable, if the researcher were unable to find s
(standard deviation) from previous study or performing a pilot study, an alternative
way to get it is by finding quarter of range result for outcome variable in population of
interest. For instance, the researcher wanted to know the mean Hb level (gr/dl) for
adult person in Bandung. The normal range of Hb level for adult in Hasan Sadikin
Hospital was 12 – 18 gr/dl. Roughly, she could estimate s (standard deviation) as (18 –
12)/4 = 1.5 gr/dl.
4. To estimate sample size with outcome variable numeric in order (APGAR score,
depression score, GCS, etc), they can be treated as continuous variable.
5. To estimate sample size with outcome variable ordinal (mild, moderate, severe), they
can be treated as dichotomous variable (mild vs moderate-severe or mild-moderate vs
severe)