Method document
Achieved power for logistic regression, binary predictor
Calculates the power of the Wald test of a binary predictor’s coefficient in logistic regression, from the baseline probability, the odds ratio, the share with the predictor, and its correlation with other covariates.
https://statwisely.com/methods/power-logistic/
When to use it
- Assess whether a planned logistic model can detect the association of a yes/no exposure with a yes/no outcome.
Not for
- A rare predictor costs power quickly: the information comes from the smaller of the two predictor groups.
Notation
- Participants.
- Event probabilities without and with the predictor.
- Share with the predictor.
- Overall event probability, (1 − B)p₀ + Bp₁.
- R² of this predictor on the other covariates.
Formulas
Parameters
Sample size
Values: Integer, at least 2
Participants with complete data.
Odds ratio
Values: Positive, not 1
Odds of the outcome with the predictor, relative to without it.
Event probability without the predictor
Values: Between 0 and 1
Outcome probability in those without the predictor.
Share with the predictor
Values: Between 0 and 1
Proportion of the sample with the binary predictor.
R² with other predictorsOptional
Values: At least 0, below 1
How well the other covariates explain this predictor; 0 when it is the only one.
Significance level
Values: Between 0 and 1
The type I error rate for the specified test.
Test direction
Values: 1 or 2
One-sided tests use the upper rejection tail. Two-sided tests split α equally between both tails.
Assumptions
- Observations are independent and the logistic model holds; the Wald test is a large-sample approximation.
- One-sided tests use the upper rejection tail. Two-sided tests split α equally between both tails.
Worked examples
A worked input set
For 400 participants, OR = 2, p₀ = 0.20, 30% with the predictor, and R² = 0.10 with other covariates at α = 0.05: p₁ = 0.333 and the effective sample is 360.
Sample size: 400
Open this example in the calculatorValidation
- Power is the logistic-regression sample-size formula solved for z_β, with the far tail added for a two-sided test. At the size that calculator returns it reaches the target, one fewer falls short, and it agrees with an independent calculation in R.
How to cite
StatWisely. Achieved power for logistic regression, binary predictor. Method document, engine version 1.0.0, reviewed 2026-10-03. https://statwisely.com/methods/power-logistic/
Cite the original references for the formulas your design uses as well.
References
- 1.Hsieh FY, Bloch DA, Larsen MD. A simple method of sample size calculation for linear and logistic regression. Statistics in Medicine. 1998;17(14):1623–1634.
- 2.Faul F, Erdfelder E, Lang AG, Buchner A. G*Power 3: a flexible statistical power analysis program for the social, behavioral, and biomedical sciences. Behavior Research Methods. 2007;39(2):175–191.