Sample Size Calculator: Simple Logistic Regression
Hypothesis: Two-Sided Equality for binary covariate
Data Input: (Help) (Example)
Input
Results
α
£]
P1
N
P2
B
Variables
Descriptions
£\
Probability of type I error
Probability of type II error
Event rate at X = 0
Event rate at X = 1
Proportion of the sample with X = 1
Sample size
Help Aids Top
Application: This section illistrates how to determine the minimum sample size for simple logistic regression with a binary covariate.
Procedure:
a) Value of £\, the two-sided confidence level
b) Value of £], the type II error (1-power)
c) Various proportions
a) The required sample size.
Formulae:
Top
Example
Example 1: Given a balanced design with high event rates P1=0.4, P2=0.5 and B = 0.5, what is the required sample size for a simple logistic regression? (Assume both Type I and Type II error to be 0.05).
z£\/2=1.960
z1-£]=1.645
V0=4
V(£]*)=3.33333
R = 1.2
£]*=0.40547
£_=1.09545
N = 1368
Therefore, 1368 participant is required.
Example 2: Given a low prevalence rate P1=0.05, P2=0.1 and B = 0.2, what is the required sample size for a simple logistic regression? (Assume both Type I and Type II error to be 0.05). N = 2613 Therefore, 2613 participant is required.
N = 2613
Therefore, 2613 participant is required.