Central formulas for all registered ggpower tests. See linked
vignettes for worked examples.
General power
For many tests, power is computed from a noncentral distribution:
where
is the critical value under
and
is the CDF under
.
t tests
Cohen’s d (one sample / paired)
Noncentrality:
(one sample, paired).
Two independent means
Point-biserial correlation
Convert
to
:
.
Linear regression slope
Generic t (direct NCP)
User supplies noncentrality parameter
and
directly.
Vignette: t Tests
F tests and ANOVA
Cohen’s f from
Noncentrality (omnibus)
depending on the test (see registry method field).
Multiple regression
increase
Two variances
Power from noncentral F with numerator
.
Vignette: ANOVA and
Regression
Chi-square tests
One-sample variance
Test
against
via
with
.
Cohen’s w (Gof / contingency)
Noncentrality:
.
Vignette: Exact
and Proportions
Exact and proportion tests
Binomial / one proportion / sign test
Exact binomial enumeration or normal approximation for large
.
Fisher exact (two proportions)
Uses hypergeometric enumeration; normal Cohen’s
fallback for large tables.
McNemar (approximation)
Discordant-pair binomial proxy on
vs
.
Vignette: Exact
and Proportions
z tests
Independent correlations (Fisher Z)
Dependent correlations (Steiger)
Uses covariance of Fisher-Z transformed correlations; see
z_corr_dependent_* tests.
Logistic regression (Wald)
Poisson regression (Wald)
Nonparametric tests
Asymptotic relative efficiency (ARE)
Wilcoxon tests map to equivalent
via ARE:
then reuse t-test noncentrality.
Vignette: Nonparametric Tests
Biomarker discovery
ROC AUC — Hanley-McNeil (one sample)
Two independent AUCs — DeLong-style
Diagnostic accuracy
Separate binomial tests for sensitivity and specificity; reported
power is
.
Log-rank (Schoenfeld)
Cox regression
where
is expected events.
FDR screening
Benjamini-Hochberg at level
;
power from independent two-sample
tests with proportion
true nulls.
Vignettes: ROC /
AUC, Diagnostic
accuracy
Clinical trials
Superiority (continuous)
One-sided two-sample
:
.
Superiority (binary)
One-sided Fisher / proportion test on
vs
.
Non-inferiority (continuous)
Shifted mean difference:
.
Non-inferiority (binary)
Normal approximation on
.
Equivalence — TOST
Two one-sided tests:
Simon two-stage
under
and
response rates.