Sample Size Calculator: Simple Logistic Regression
Hypothesis: Two-Sided Equality for continuous covariate
Data Input: (Help) (Example)
Input
Results
α
£]
P1
N
P2
Variables
Descriptions
£\
Probability of type I error
Probability of type II error
Event rate at X = 0
Event rate at X = 1
Required sample size
Help Aids Top
Application: This section illistrates how to determine the minimum sample size for simple logistic regression with a continuous covariate.
Procedure:
a) Value of £\, the two-sided confidence level
b) Value of £], the type II error (1-power)
c) Event rates
a) The required sample size.
Formulae:
Top
Example
Example 1: Given a design with high event rates P1=0.4 and P2=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
V(£]*)=0.92109
£]*=0.40547
£_=1.23999
N = 380
Therefore, 380 participant is required.
Example 2: Given a low prevalence rate P1=0.05 and P2=0.1, what is the required sample size for a simple logistic regression? (Assume both Type I and Type II error to be 0.05). N =503 Therefore, 503 participant is required.
N =503
Therefore, 503 participant is required.