TriaLab Power Studio · Method
Logistic regression coefficient
Sizes a logistic regression to detect the odds ratio of a binary event per unit of one covariate — continuous (per standard deviation) or binary — adjusted for other covariates through their R² with it, by Demidenko’s large-sample method with GPower’s variance correction or by Hsieh’s formulas (GPower; Hsieh, Bloch and Larsen).
Also known as: logistic regression, odds ratio, binary outcome, Hsieh, Demidenko, covariate adjustment, Wald test.
Maturity
Validated: 30 published examples from 2 independent publications (G*Power; PASS) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — A confidence-interval width for a logistic regression coefficient is not sized here: the G*Power manual offers none and PASS’s chapter is not on disk.
- Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
- Duration: not offered — This design has no time axis: each subject is observed once, so calendar time does not enter the power function.
Size axes:
- Subjects (
participants), Count
Inputs
Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.
Common to every method
- Significance level (alpha) (
alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention. - Target power (
power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.
The method’s own
- Event probability at the reference (p₁) (
event_probability_null): a number, above 0 and below 1; default 0.5; entered as proportion (0-1) or percent The probability of the event when the covariate is at its reference: zero for a binary covariate, the mean for a continuous one. - Odds ratio per unit (OR) (
odds_ratio): a number, above 0; default 1.5 The odds of the event one unit higher — one standard deviation for a continuous covariate — relative to the odds at the reference. - Event probability one unit higher (p₂) (
event_probability): a number, above 0 and below 1; entered as proportion (0-1) or percent The probability of the event when the covariate is one unit above its reference. - Log odds ratio (β₁) (
log_odds_ratio), advanced: a number, any finite number The regression coefficient, the canonical effect. - Covariate (
covariate): a choice; defaultcontinuous_normalContinuous and standard normal (the odds ratio is per standard deviation), or binary with the entered proportion at X = 1.continuous_normalContinuous (standard normal): Hsieh’s Table II setting.binaryBinary: Hsieh’s Table I setting; two groups compared.
- Proportion with X = 1 (B) (
binary_prevalence): a number, above 0 and below 1; default 0.5; entered as proportion (0-1) or percent For a binary covariate, the share of subjects in the exposed group. Ignored for a continuous covariate. - R² of the covariate on the other covariates (
r_squared_covariates): a number, at least 0 and below 1; default 0 How much of the covariate of interest the others explain; the size is inflated by 1/(1 − R²) (Hsieh et al.). Zero for a single covariate. - Method (
method): a choice; defaultdemidenko_correctedDemidenko’s large-sample Wald power with GPower’s variance correction is the most accurate in GPower’s simulations; without the correction it is Demidenko’s own; Hsieh’s closed formulas are the classic tables.demidenko_correctedDemidenko, variance-corrected: G*Power’s recommendation.demidenkoDemidenko: Without the correction.hsiehHsieh, Bloch and Larsen: Their equations (1) and (2).
- Sidedness of the equality test (
tails): a choice; defaulttwo_sidedTwo-sided unless the direction of the association is known in advance; one-sided looks in the direction of the log odds ratio.two_sidedTwo-sided: Either direction rejects.one_sidedOne-sided: Only the anticipated direction rejects; alpha is spent on that tail.
Sizes entered when another axis is solved for
- Subjects (
participants): a whole number, at least 1 Subjects. Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Ways to express an input
Effect size — The odds ratio, the event probability one unit higher, or the log odds ratio.
- Odds ratio, the form’s default: The clinical quantity. (fields
odds_ratio) - Event probability one unit higher: Hsieh’s p₂. (fields
event_probability) - Log odds ratio: β₁, the canonical effect. (fields
log_odds_ratio)
Modifiers admitted
dropout: Dropout
Published examples it reproduces (30)
Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).
| Source | Example | Solves for | Inputs | Published |
|---|---|---|---|---|
| G*Power 3.1 manual §29.4 | standard normal covariate, OR 1.5 at p₁ 0.5, two-sided 0.05, power 0.95, Hsieh’s Table II => 317 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.5; method = hsieh; odds_ratio = 1.5; power_target = 0.95; r_squared_covariates = 0; effect expressed as odds_ratio |
participants = 317 ± 0 |
| G*Power 3.1 manual §29.4 | standard normal covariate, OR 1.5 at p₁ 0.5, two-sided 0.05, power 0.95, the variance-corrected method => 337 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.5; method = demidenko_corrected; odds_ratio = 1.5; power_target = 0.95; r_squared_covariates = 0; effect expressed as odds_ratio |
participants = 337 ± 0 |
| G*Power 3.1 manual §29.4 | standard normal covariate, OR 1.5 at p₁ 0.5, two-sided 0.05, power 0.95, Demidenko without correction => 355 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.5; method = demidenko; odds_ratio = 1.5; power_target = 0.95; r_squared_covariates = 0; effect expressed as odds_ratio |
participants = 355 ± 0 |
| G*Power 3.1 manual §29.4 | standard normal covariate, OR 1.5 at p₁ 0.5, two-sided 0.05, power 0.95, R² 0.1 with the other covariates — the manual attributes 395 to the corrected method, which gives 375 => 395 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.5; method = demidenko; odds_ratio = 1.5; power_target = 0.95; r_squared_covariates = 0.1; effect expressed as odds_ratio |
participants = 395 ± 0 |
| G*Power 3.1 manual §29.4 | Hsieh’s method at 317 subjects => power 0.950486 | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.5; method = hsieh; odds_ratio = 1.5; participants = 317; r_squared_covariates = 0; effect expressed as odds_ratio |
power = 0.950486 ± 0.000001 |
| G*Power 3.1 manual §29.4 | binary covariate with 0.5 exposed, p₁ 0.05 and p₂ 0.10, two-sided 0.05, power 0.95, Hsieh’s Table I => 1437 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.5; covariate = binary; event_probability = 0.1; event_probability_null = 0.05; method = hsieh; power_target = 0.95; r_squared_covariates = 0; effect expressed as probability |
participants = 1437 ± 0 |
| G*Power 3.1 manual §29.4 | binary covariate with 0.5 exposed, p₁ 0.05 and p₂ 0.10, two-sided 0.05, power 0.95, the variance-corrected method => 1437 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.5; covariate = binary; event_probability = 0.1; event_probability_null = 0.05; method = demidenko_corrected; power_target = 0.95; r_squared_covariates = 0; effect expressed as probability |
participants = 1437 ± 0 |
| G*Power 3.1 manual §29.4 | binary covariate with 0.5 exposed, p₁ 0.05 and p₂ 0.10, two-sided 0.05, power 0.95, Demidenko without correction => 1498 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.5; covariate = binary; event_probability = 0.1; event_probability_null = 0.05; method = demidenko; power_target = 0.95; r_squared_covariates = 0; effect expressed as probability |
participants = 1498 ± 0 |
| G*Power 3.1 manual §29.4 | binary covariate with 0.2 exposed, p₁ 0.05 and p₂ 0.10, two-sided 0.05, power 0.95, a fifth exposed => 2158 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.2; covariate = binary; event_probability = 0.1; event_probability_null = 0.05; method = demidenko_corrected; power_target = 0.95; r_squared_covariates = 0; effect expressed as probability |
participants = 2158 ± 0 |
| G*Power 3.1 manual §29.4 | binary covariate with 0.8 exposed, p₁ 0.05 and p₂ 0.10, two-sided 0.05, power 0.95, four fifths exposed => 2368 subjects | Sample size | alpha = 0.05; binary_prevalence = 0.8; covariate = binary; event_probability = 0.1; event_probability_null = 0.05; method = demidenko_corrected; power_target = 0.95; r_squared_covariates = 0; effect expressed as probability |
participants = 2368 ± 0 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 20 observations => power 0.06716 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 20; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.06716 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 50 observations => power 0.10964 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 50; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.10964 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 100 observations => power 0.17737 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 100; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.17737 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 200 observations => power 0.30962 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 200; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.30962 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 300 observations => power 0.43325 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 300; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.43325 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 500 observations => power 0.63808 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 500; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.63808 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 700 observations => power 0.78147 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 700; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.78147 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 1000 observations => power 0.90516 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 1000; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.90516 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 1.5, two-sided 0.05, 1200 observations => power 0.94779 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 1.5; participants = 1200; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.94779 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 20 observations => power 0.12119 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 20; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.12119 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 50 observations => power 0.23903 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 50; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.23903 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 100 observations => power 0.42410 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 100; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.4241 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 200 observations => power 0.70579 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 200; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.70579 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 300 observations => power 0.86504 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 300; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.86504 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 500 observations => power 0.97696 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 500; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.97696 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 700 observations => power 0.99673 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 700; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.99673 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 1000 observations => power 0.99986 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 1000; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.99986 ± 0.000005 |
| PASS 2026 chapter 860, Example 1 (printed p. 860-5) | Standard-normal covariate, baseline probability 0.07, odds ratio 2.0, two-sided 0.05, 1200 observations => power 0.99998 (Hsieh) | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.07; method = hsieh; odds_ratio = 2; participants = 1200; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.99998 ± 0.000005 |
| PASS 2026 chapter 860, Example 5 (printed p. 860-11), validating Hsieh 1998 p. 1628 | Standard-normal covariate, baseline probability 0.5, odds ratio 1.5, two-sided 0.05, 317 observations => power 0.95049 | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = continuous_normal; event_probability_null = 0.5; method = hsieh; odds_ratio = 1.5; participants = 317; r_squared_covariates = 0; tails = two_sided; effect expressed as odds_ratio |
power = 0.95049 ± 0.000005 |
| PASS 2026 chapter 860, Example 6 (printed p. 860-12), validating Hsieh 1998 p. 1626 | Binary covariate at 50%, probabilities 0.4 against 0.5, two-sided 0.05, 1282 observations => power 0.95021 | Power | alpha = 0.05; binary_prevalence = 0.5; covariate = binary; event_probability = 0.5; event_probability_null = 0.4; method = hsieh; participants = 1282; r_squared_covariates = 0; tails = two_sided; effect expressed as probability |
power = 0.95021 ± 0.000005 |
Sources
- Faul F, Erdfelder E, Buchner A, Lang A-G. G*Power 3.1 manual, §29: Z test — Multiple Logistic Regression.
- Faul F, Erdfelder E, Buchner A, Lang A-G. Statistical power analyses using G*Power 3.1: tests for correlation and regression analyses. Behav Res Methods. 2009;41(4):1149-1160.
- Hsieh FY, Bloch DA, Larsen MD. A simple method of sample size calculation for linear and logistic regression. Stat Med. 1998;17(14):1623-1634.
- Demidenko E. Sample size determination for logistic regression revisited. Stat Med. 2007;26(18):3385-3397.
This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →