Procedures catalogue
40 procedures. A “free” badge marks those in the free edition.
Means
One-sample t-test free
power from the noncentral t distribution, δ = (μ − μ0)/σ · √n, n−1 degrees of freedom
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size | n | 30 |
| Expected dropout | dropout | 0 |
| Difference to detect (μ − μ0) | diff | 5 |
| Standard deviation σ | sd | 10 |
Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed. Lawrence Erlbaum. Owen DB. (1965) A special case of a bivariate non-central t-distribution. Biometrika 52:437-446.
Paired t-test free
power from the noncentral t distribution; σ_d = √(σ1² + σ2² − 2ρσ1σ2), δ = Δ/σ_d · √n
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of pairs | n | 30 |
| Expected dropout | dropout | 0 |
| Mean difference to detect | diff | 5 |
| SD condition 1 (σ1) | sd1 | 10 |
| SD condition 2 (σ2) | sd2 | 10 |
| Correlation between measurements ρ | corr | 0.5 |
Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed. Owen DB. (1965) Biometrika 52:437-446.
Two-sample t-test (independent groups) free
power from the noncentral t distribution, δ = Δ / (σ √(1/n1 + 1/n2)), n1 + n2 − 2 degrees of freedom
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size of group 1 | n | 30 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Difference in means to detect | diff | 5 |
| Common standard deviation σ | sd | 10 |
Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed. Owen DB. (1965) Biometrika 52:437-446.
Welch t-test (unequal variances)
noncentral t with Satterthwaite degrees of freedom evaluated at the assumed sample sizes and variances (approximation)
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size of group 1 | n | 30 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Difference in means to detect | diff | 5 |
| SD of group 1 | sd1 | 10 |
| SD of group 2 | sd2 | 15 |
Welch BL. (1947) Biometrika 34:28-35. Satterthwaite FE. (1946) Biometrics Bulletin 2:110-114. Moser BK, Stevens GR, Watts CL. (1989) Commun Stat Theory Methods 18:3763-3767.
Two-sample z-test (known σ)
power Φ(|Δ|/SE − z_{1−α/2}) with SE = √(σ1²/n1 + σ2²/n2)
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size of group 1 | n | 30 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Difference in means to detect | diff | 5 |
| SD of group 1 | sd1 | 10 |
| SD of group 2 | sd2 | 10 |
Chow S-C, Shao J, Wang H, Lokhnygina Y. (2018) Sample Size Calculations in Clinical Research, 3rd ed. CRC Press, ch. 3.
Wilcoxon–Mann–Whitney test
asymptotic relative efficiency (ARE): power of the t-test at sample sizes n·ARE (ARE = 3/π for a normal parent, π²/9 logistic, 3/2 Laplace, 1 uniform); or Noether's approximation: z = |p − ½| √(12 c (1−c) N), p = P(X < Y)
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size of group 1 | n | 30 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Method | method | 1 = Asymptotic relative efficiency (Cohen's d) / 2 = Noether (P(X < Y)) |
| Parent distribution | parent | 1 = Normal / 2 = Logistic / 3 = Laplace / 4 = Uniform |
| Cohen's d (difference / SD) | d | 0.5 |
| P(X < Y) under the alternative | prob | 0.7 |
Lehmann EL. (1975) Nonparametrics: Statistical Methods Based on Ranks. Faul F et al. (2009) Behav Res Methods 41:1149-1160 (G*Power 3.1, ARE method). Noether GE. (1987) Sample size determination for some common nonparametric tests. J Am Stat Assoc 82:645-647. Rosner B, Glynn RJ. (2009) Biometrics 65:188-197.
ANOVA and regression
One-way ANOVA (fixed effects) free
power from the noncentral F distribution: λ = f² · N, df = (k − 1, N − k); f = σ_means / σ
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Sample size per group | n | 20 |
| Expected dropout | dropout | 0 |
| Define the effect by | mode | 0 = Cohen's f / 1 = The group means |
| Number of groups | k | 3 |
| Cohen's f | f | 0.25 |
| Group means | means | 10, 12, 14 |
| Within-group SD σ | sd | 4 |
Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed., ch. 8. Faul F, Erdfelder E, Lang A-G, Buchner A. (2007) G*Power 3. Behav Res Methods 39:175-191.
General linear model F-test (regression, factorial ANOVA, ANCOVA) free
f² = (R²_full − R²_reduced)/(1 − R²_full); λ = f² · N; df = (u, N − p − 1); noncentral F
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Total sample size N | n | 60 |
| Expected dropout | dropout | 0 |
| R² of the full model | r2full | 0.25 |
| R² of the reduced model (without tested predictors) | r2red | 0 |
| Predictors tested (numerator df) | u | 3 |
| Total predictors in the model | p | 3 |
Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed., ch. 9. Faul F et al. (2009) Statistical power analyses using G*Power 3.1. Behav Res Methods 41:1149-1160.
Simple linear regression slope
noncentral t: δ = β σ_x √(n−1) / σ_e, n − 2 degrees of freedom
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of observations | n | 40 |
| Expected dropout | dropout | 0 |
| Slope to detect β | slope | 0.5 |
| SD of x | sdx | 2 |
| Residual SD σ_e | sde | 3 |
Dupont WD, Plummer WD. (1998) Power and sample size calculations for studies involving linear regression. Control Clin Trials 19:589-601.
Repeated-measures ANOVA (within factor)
noncentral F: λ = f² N m ε/(1 − ρ); df = ((m−1)ε, (N−1)(m−1)ε), ε = sphericity correction
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Number of subjects | n | 20 |
| Expected dropout | dropout | 0 |
| Within-subject effect f | f | 0.25 |
| Number of repeated measurements | m | 4 |
| Correlation among measurements ρ | rho | 0.5 |
| Sphericity correction ε (1 = sphericity) | eps | 1 |
Faul F et al. (2007) G*Power 3. Behav Res Methods 39:175-191. Muller KE, Barton CN. (1989) Approximate power for repeated-measures ANOVA lacking sphericity. J Am Stat Assoc 84:549-555.
Equivalence and non-inferiority
Equivalence of means (TOST)
exact TOST power by integration over the chi-square distribution of the estimated SD (Schuirmann; Phillips)
| Parameter | Clé | Default |
|---|---|---|
| Level of each one-sided test (alpha) | alpha | 0.05 |
| Target power | power | 0.9 |
| Sample size of group 1 (or pairs) | n | 40 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Design | design | 1 = Parallel groups / 2 = Paired / one sample |
| True mean difference | diff | 0 |
| Equivalence margin ± θ | margin | 5 |
| SD σ (of differences if paired) | sd | 10 |
Schuirmann DJ. (1987) A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability. J Pharmacokinet Biopharm 15:657-680. Phillips KF. (1990) Power of the two one-sided tests procedure in bioequivalence. J Pharmacokinet Biopharm 18:137-144.
Bioequivalence: 2×2 crossover (ABE, geometric mean ratio)
exact TOST on the log scale: σ_w² = ln(CV² + 1), SE = σ_w √(½(1/n1 + 1/n2)), N − 2 degrees of freedom
| Parameter | Clé | Default |
|---|---|---|
| Level of each one-sided test (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Total number of subjects N | n | 40 |
| Expected dropout | dropout | 0 |
| Within-subject coefficient of variation (CV) | cv | 0.3 |
| True Test/Reference ratio | theta0 | 0.95 |
| Lower equivalence limit | lo | 0.8 |
| Upper equivalence limit | hi | 1.25 |
Diletti E, Hauschke D, Steinijans VW. (1991) Sample size determination for bioequivalence assessment by means of confidence intervals. Int J Clin Pharmacol Ther Toxicol 29:1-8. Schuirmann DJ. (1987) J Pharmacokinet Biopharm 15:657-680. FDA Guidance: Statistical Approaches to Establishing Bioequivalence (2001).
Non-inferiority or superiority by margin (two means)
one-sided noncentral t: δ = (Δ + M)/SE for non-inferiority, (Δ − M)/SE for superiority by margin
| Parameter | Clé | Default |
|---|---|---|
| One-sided level (alpha) | alpha | 0.025 |
| Target power | power | 0.8 |
| Sample size of group 1 (treatment) | n | 100 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Hypothesis | type | 1 = Non-inferiority (H0: Δ ≤ −M) / 2 = Superiority by margin (H0: Δ ≤ M) |
| True difference Δ (treatment − control) | diff | 0 |
| Margin M (positive) | margin | 3 |
| Common SD σ | sd | 10 |
Chow S-C, Shao J, Wang H, Lokhnygina Y. (2018) Sample Size Calculations in Clinical Research, 3rd ed., ch. 3. FDA Guidance: Non-Inferiority Clinical Trials (2016). ICH E9 (1998).
Two proportions: non-inferiority, superiority by margin, equivalence
normal approximation with null variance from restricted maximum likelihood (Farrington & Manning); equivalence: two one-sided tests
| Parameter | Clé | Default |
|---|---|---|
| One-sided level (alpha) | alpha | 0.025 |
| Target power | power | 0.8 |
| Sample size of group 1 (treatment) | n | 200 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Hypothesis | type | 1 = Non-inferiority (H0: p1 − p2 ≤ −δ) / 2 = Superiority by margin (H0: p1 − p2 ≤ δ) / 3 = Equivalence (|p1 − p2| < δ) |
| True treatment proportion p1 | p1 | 0.8 |
| True control proportion p2 | p2 | 0.8 |
| Margin δ (positive) | margin | 0.1 |
Farrington CP, Manning G. (1990) Test statistics and sample size formulae for comparative binomial trials with null hypothesis of non-zero risk difference or non-unity relative risk. Stat Med 9:1447-1454. Miettinen O, Nurminen M. (1985) Comparative analysis of two rates. Stat Med 4:213-226. Chow S-C et al. (2018) ch. 4.
Proportions and tables
One proportion vs a reference value (z-test) free
normal approximation: power Φ((|p1 − p0|√n − z·√(p0 q0)) / √(p1 q1)); optional continuity correction
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size | n | 100 |
| Expected dropout | dropout | 0 |
| Reference proportion p0 (null) | p0 | 0.5 |
| True proportion p1 | p1 | 0.65 |
| Continuity correction | cc | 0 = No / 1 = Yes |
Fleiss JL, Levin B, Paik MC. (2003) Statistical Methods for Rates and Proportions, 3rd ed. Wiley. Chow S-C, Shao J, Wang H, Lokhnygina Y. (2018) Sample Size Calculations in Clinical Research, 3rd ed., ch. 4.
One proportion: exact binomial test
exact power: sum of binomial probabilities under p1 over the exact rejection region (probability-based p-value)
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size | n | 60 |
| Expected dropout | dropout | 0 |
| Reference proportion p0 | p0 | 0.5 |
| True proportion p1 | p1 | 0.7 |
Clopper CJ, Pearson ES. (1934) Biometrika 26:404-413. Fleiss JL, Levin B, Paik MC. (2003) Statistical Methods for Rates and Proportions. Chow S-C et al. (2018) ch. 4.
Two proportions: comparison (z, corrected z, Fisher exact) free
exact power by enumeration of tables (pooled z, unpooled z, continuity-corrected z, Fisher exact); normal formula for very large samples
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size of group 1 | n | 100 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Test | method | 1 = z, pooled variance / 2 = z, unpooled variance / 3 = pooled z, continuity correction / 4 = Fisher exact |
| Define the effect by | param | 1 = p2 (proportion in group 2) / 2 = Odds ratio / 3 = Relative risk |
| Proportion in group 1 (control) p1 | p1 | 0.3 |
| Proportion in group 2 p2 | p2 | 0.5 |
| Odds ratio (group 2 / group 1) | or | 2.33 |
| Relative risk (group 2 / group 1) | rr | 1.67 |
Fleiss JL, Levin B, Paik MC. (2003) Statistical Methods for Rates and Proportions, 3rd ed. Wiley. Chow S-C et al. (2018) Sample Size Calculations in Clinical Research, ch. 4. Fisher RA. (1935) J R Stat Soc 98:39-82. Gail M, Gart JJ. (1973) Biometrics 29:441-448.
Paired binary data: McNemar test
exact: number of discordant pairs ~ Bin(n, ψ), then conditional binomial test; or Connor's normal approximation
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of pairs | n | 150 |
| Expected dropout | dropout | 0 |
| Method | method | 1 = Exact conditional (averaged over the number of discordant pairs) / 2 = Normal approximation (Connor) / 3 = Exact, number of discordant pairs fixed at ⌈ψ·n⌉ (as G*Power) |
| Discordant pairs (+/−) p10 | p10 | 0.2 |
| Discordant pairs (−/+) p01 | p01 | 0.1 |
McNemar Q. (1947) Psychometrika 12:153-157. Connor RJ. (1987) Sample size for testing differences in proportions for the paired-sample design. Biometrics 43:207-211. Fagerland MW, Lydersen S, Laake P. (2013) The McNemar test for binary matched-pairs data: mid-p and asymptotic are better than exact conditional. BMC Med Res Methodol 13:91.
Chi-square test (Cohen's w) free
noncentral chi-square: λ = w² N, given degrees of freedom (r × c table: (r−1)(c−1))
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Total sample size N | n | 120 |
| Expected dropout | dropout | 0 |
| Cohen's w | w | 0.3 |
| Degrees of freedom | df | 2 |
Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed., ch. 7. Faul F et al. (2007) G*Power 3. Behav Res Methods 39:175-191.
Chi-square goodness of fit (category probabilities)
w = √Σ (p1_i − p0_i)²/p0_i; noncentral chi-square λ = w² N, k − 1 − (estimated parameters) df
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Total sample size N | n | 150 |
| Expected dropout | dropout | 0 |
| Probabilities under H0 (sum = 1) | p0 | 0.25, 0.25, 0.25, 0.25 |
| Probabilities under H1 (sum = 1) | p1 | 0.35, 0.25, 0.20, 0.20 |
| Estimated parameters removed from df | est | 0 |
Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed., ch. 7.
Logistic regression: one continuous covariate
Hsieh et al.: n = (z_{1−α/2} + z_{1−β})² / (P1 (1 − P1) β*²) / (1 − R²), β* = ln OR per SD
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of observations | n | 300 |
| Expected dropout | dropout | 0 |
| Event probability at the mean of X (P1) | p1 | 0.3 |
| Odds ratio for a one-SD increase | or | 1.5 |
| R² of X with the other covariates | r2 | 0 |
Hsieh FY, Bloch DA, Larsen MD. (1998) A simple method of sample size calculation for linear and logistic regression. Stat Med 17:1623-1634. Demidenko E. (2007) Sample size determination for logistic regression revisited. Stat Med 26:3385-3397.
Special designs
2×2 crossover: treatment difference
noncentral t: SE = σ_w √(½(1/n1 + 1/n2)), N − 2 degrees of freedom, σ_w = within-subject SD
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Total number of subjects N | n | 24 |
| Expected dropout | dropout | 0 |
| Treatment difference to detect | diff | 5 |
| Within-subject SD σ_w | sdw | 8 |
Chow S-C, Liu J-P. (2009) Design and Analysis of Bioavailability and Bioequivalence Studies, 3rd ed. CRC Press. Jones B, Kenward MG. (2014) Design and Analysis of Cross-Over Trials, 3rd ed.
Cluster-randomised trial (two means)
design effect D = 1 + (m − 1)·ICC; effective sample size per arm k·m/D; noncentral t, 2(k − 1) degrees of freedom
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Clusters per arm (k) | n | 10 |
| Expected dropout | dropout | 0 |
| Subjects per cluster (m) | m | 20 |
| Intracluster correlation (ICC) | icc | 0.05 |
| Difference in means to detect | diff | 5 |
| Total SD σ | sd | 10 |
Donner A, Klar N. (2000) Design and Analysis of Cluster Randomization Trials in Health Research. Arnold. Eldridge SM, Ashby D, Kerry S. (2006) Sample size for cluster randomized trials: effect of coefficient of variation of cluster size. Int J Epidemiol 35:1292-1300.
Cluster-randomised trial (two proportions)
design effect D = 1 + (m − 1)·ICC; effective sample size per arm k·m/D; normal formula with pooled variance
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Clusters per arm (k) | n | 15 |
| Expected dropout | dropout | 0 |
| Subjects per cluster (m) | m | 30 |
| Intracluster correlation (ICC) | icc | 0.03 |
| Control-arm proportion p1 | p1 | 0.3 |
| Treated-arm proportion p2 | p2 | 0.2 |
Donner A, Klar N. (2000) Design and Analysis of Cluster Randomization Trials in Health Research. Arnold. Hayes RJ, Moulton LH. (2017) Cluster Randomised Trials, 2nd ed. CRC Press.
Correlation and variance
Pearson correlation: test of a coefficient free
exact distribution of the sample correlation (bivariate normal model; Hotelling) with exact critical values; Fisher z transformation as an option: δ = |atanh ρ1 − atanh ρ0| √(n − 3)
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of observations | n | 60 |
| Expected dropout | dropout | 0 |
| Method | method | 1 = Exact distribution (bivariate normal model) / 2 = Fisher z transformation (approximation) |
| Correlation under H0 (ρ0) | rho0 | 0 |
| True correlation (ρ1) | rho1 | 0.3 |
Hotelling H. (1953) New light on the correlation coefficient and its transforms. J R Stat Soc B 15:193-232. Johnson NL, Kotz S. (1970) Continuous Univariate Distributions-2. Fisher RA. (1921) Metron 1:3-32. Cohen J. (1988) Statistical Power Analysis for the Behavioral Sciences, 2nd ed., ch. 3. Bonett DG, Wright TA. (2000) Psychometrika 65:23-28.
Comparison of two independent correlations
δ = |atanh ρ1 − atanh ρ2| / √(1/(n1 − 3) + 1/(n2 − 3))
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size of group 1 | n | 100 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Correlation in group 1 | rho1 | 0.5 |
| Correlation in group 2 | rho2 | 0.2 |
Cohen J. (1988) ch. 4. Fisher RA. (1921) Metron 1:3-32.
Variance vs a reference value (chi-square)
(n − 1) s²/σ0² ~ (σ²/σ0²) χ²_{n−1}; rejection regions from the central law
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size | n | 40 |
| Expected dropout | dropout | 0 |
| Variance ratio σ² / σ0² | r | 2 |
Chow S-C et al. (2018) Sample Size Calculations in Clinical Research, 3rd ed., ch. 3. Bonett DG. (2006) Approximate confidence interval for standard deviation of nonnormal distributions. Comput Stat Data Anal 50:775-782.
Comparison of two variances (F-test)
s1²/s2² ~ (σ1²/σ2²) F_{n1−1, n2−1}
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Sample size of group 1 | n | 40 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Variance ratio σ1² / σ2² | r | 2.5 |
Chow S-C et al. (2018) ch. 3. Sheskin DJ. (2011) Handbook of Parametric and Nonparametric Statistical Procedures, 5th ed.
Rates and counts
Two event rates (Poisson or negative binomial)
Var(ln λ̂_i) = (1/(t λ_i) + φ)/n_i; z = |ln(λ2/λ1)| / √(Var1 + Var2) (φ = 0: Poisson; φ > 0: negative binomial)
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Subjects in group 1 | n | 100 |
| Allocation ratio n2 / n1 | ratio | 1 |
| Expected dropout | dropout | 0 |
| Rate of group 1 (events per unit time) | l1 | 1 |
| Rate of group 2 | l2 | 0.7 |
| Follow-up time per subject | t | 1 |
| Dispersion φ (0 = Poisson) | phi | 0 |
Zhu H, Lakkis H. (2014) Sample size calculation for comparing two negative binomial rates. Stat Med 33:376-387. Signorini DF. (1991) Sample size for Poisson regression. Biometrika 78:446-450.
Survival and events
Log-rank: required number of events (Schoenfeld)
Schoenfeld: Var(ln HR̂) = 1/(d q1 q2); power Φ(|ln HR| √(d q1 q2) − z_{1−α/2})
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of events (deaths, relapses…) | n | 200 |
| Expected dropout | dropout | 0 |
| Hazard ratio to detect (experimental / control) | hr | 0.7 |
| Allocation ratio experimental / control | ratio | 1 |
Schoenfeld DA. (1981) The asymptotic properties of nonparametric tests for comparing survival distributions. Biometrika 68:316-319. Schoenfeld DA. (1983) Sample-size formula for the proportional-hazards regression model. Biometrics 39:499-503. Freedman LS. (1982) Tables of the number of patients required in clinical trials using the logrank test. Stat Med 1:121-129.
Log-rank: sample size with accrual and follow-up (exponential survival)
expected events d = n (q1 P1 + q2 P2), P_i = 1 − (e^{−λ_i(T−A)} − e^{−λ_i T})/(λ_i A); then Schoenfeld power
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Total number of patients | n | 400 |
| Expected dropout | dropout | 0 |
| Hazard ratio to detect (experimental / control) | hr | 0.7 |
| Median survival of the control arm (months) | m0 | 12 |
| Accrual duration A (months) | acc | 18 |
| Total study duration T (months) | tot | 36 |
| Allocation ratio experimental / control | ratio | 1 |
Schoenfeld DA. (1983) Biometrics 39:499-503. Lachin JM, Foulkes MA. (1986) Evaluation of sample size and power for analyses of survival with allowance for nonuniform patient entry, losses to follow-up, noncompliance, and stratification. Biometrics 42:507-519.
Cox regression: one covariate (required events)
Hsieh & Lavori: power Φ(|ln HR| √(d σ² (1 − R²)) − z_{1−α/2}), σ² = covariate variance
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of events | n | 150 |
| Expected dropout | dropout | 0 |
| Covariate | type | 1 = Continuous (SD) / 2 = Binary (prevalence) |
| Hazard ratio (per unit, or exposed / unexposed) | hr | 1.5 |
| SD of the covariate | sdx | 1 |
| Prevalence of the binary covariate | prev | 0.5 |
| R² of the covariate with others | r2 | 0 |
Hsieh FY, Lavori PW. (2000) Sample-size calculations for the Cox proportional hazards regression model with nonbinary covariates. Control Clin Trials 21:552-560. Schmoor C, Sauerbrei W, Schumacher M. (2000) Sample size considerations for the evaluation of prognostic factors in survival analysis. Stat Med 19:441-452.
Diagnostics and agreement
ROC curve: test of an area under the curve (Hanley–McNeil)
SE(A)² = [A(1−A) + (n_d−1)(Q1−A²) + (n_h−1)(Q2−A²)]/(n_d n_h), Q1 = A/(2−A), Q2 = 2A²/(1+A); normal power under H0 and H1
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of diseased subjects | n | 60 |
| Ratio healthy / diseased | ratio | 1 |
| Expected dropout | dropout | 0 |
| AUC under H0 (0.5 = chance) | auc0 | 0.5 |
| True AUC | auc1 | 0.75 |
Hanley JA, McNeil BJ. (1982) The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology 143:29-36. Obuchowski NA. (2005) ROC analysis. AJR 184:364-372.
Diagnostic test: precision of a sensitivity or specificity
Buderer: half-width = z √(S(1−S)/n_diseased); n_total = n_diseased / prevalence (sensitivity) or n_healthy / (1 − prevalence) (specificity)
| Parameter | Clé | Default |
|---|---|---|
| Level (1 − confidence level) | alpha | 0.05 |
| Target half-width | hw | 0.05 |
| Total sample size | n | 400 |
| Expected dropout | dropout | 0 |
| Measure | what | 1 = Sensitivity / 2 = Specificity |
| Expected sensitivity (or specificity) | s | 0.9 |
| Disease prevalence | prev | 0.2 |
Buderer NMF. (1996) Statistical methodology: I. Incorporating the prevalence of disease into the sample size calculation for sensitivity and specificity. Acad Emerg Med 3:895-900. Flahault A, Cadilhac M, Thomas G. (2005) Sample size calculation should be performed for design accuracy in diagnostic test studies. J Clin Epidemiol 58:859-862.
Intraclass correlation (one-way model)
F = MSB/MSW ~ (1 + kθ) F_{n−1, n(k−1)}, θ = ρ/(1 − ρ); exact power
| Parameter | Clé | Default |
|---|---|---|
| Significance level (alpha) | alpha | 0.05 |
| Target power | power | 0.8 |
| Test | sides | 2 = Two-sided / 1 = One-sided |
| Number of subjects | n | 40 |
| Expected dropout | dropout | 0 |
| Measurements (raters) per subject | k | 3 |
| ICC under H0 (ρ0) | rho0 | 0.6 |
| True ICC (ρ1) | rho1 | 0.8 |
Walter SD, Eliasziw M, Donner A. (1998) Sample size and optimal designs for reliability studies. Stat Med 17:101-110. Donner A, Eliasziw M. (1987) Sample size requirements for reliability studies. Stat Med 6:441-448. Shrout PE, Fleiss JL. (1979) Intraclass correlations: uses in assessing rater reliability. Psychol Bull 86:420-428.
Precision and surveys
Confidence interval for a mean: precision free
half-width = t_{1−α/2, n−1} s/√n, with s the assurance quantile of the chi-square law (50 % assurance = expected width)
| Parameter | Clé | Default |
|---|---|---|
| Level (1 − confidence level) | alpha | 0.05 |
| Target half-width | hw | 2 |
| Sample size | n | 30 |
| Expected dropout | dropout | 0 |
| Standard deviation σ | sd | 10 |
| Assurance (probability the width stays within target) | assur | 0.5 |
Kupper LL, Hafner KB. (1989) How appropriate are popular sample size formulas? Am Stat 43:101-105. Beal SL. (1989) Sample size determination for confidence intervals on the population mean and on the difference between two population means. Biometrics 45:969-977.
Confidence interval for a proportion: precision
Wald, Wilson (score) or Clopper–Pearson (exact) half-width at the expected proportion
| Parameter | Clé | Default |
|---|---|---|
| Level (1 − confidence level) | alpha | 0.05 |
| Target half-width | hw | 0.05 |
| Sample size | n | 400 |
| Expected dropout | dropout | 0 |
| Method | method | 1 = Wald / 2 = Wilson (score) / 3 = Clopper–Pearson (exact) |
| Expected proportion | p | 0.5 |
Brown LD, Cai TT, DasGupta A. (2001) Interval estimation for a binomial proportion. Stat Sci 16:101-133. Wilson EB. (1927) J Am Stat Assoc 22:209-212. Clopper CJ, Pearson ES. (1934) Biometrika 26:404-413.
Survey: sample size for a margin of error free
margin = z √(D · v / n · (N − n)/(N − 1)), v = p(1 − p) for a proportion or σ² for a mean; D = design effect
| Parameter | Clé | Default |
|---|---|---|
| Level (1 − confidence level) | alpha | 0.05 |
| Target margin of error (±) | margin | 0.05 |
| Sample size | n | 385 |
| Expected non-response | dropout | 0 |
| Estimate | what | 1 = A proportion / 2 = A mean |
| Expected proportion (0.5 = most conservative) | p | 0.5 |
| Population SD σ | sd | 10 |
| Population size (0 = unlimited) | pop | 0 |
| Design effect | deff | 1 |
Cochran WG. (1977) Sampling Techniques, 3rd ed. Wiley. Kish L. (1965) Survey Sampling. Wiley. Lohr SL. (2019) Sampling: Design and Analysis, 2nd ed. CRC Press.
Quality and reliability
Reliability demonstration (success-run, zero or c failures)
achieved confidence = 1 − P(X ≤ c | n, 1 − R), X ~ Binomial; zero failures: n = ln(1 − C)/ln(R)
| Parameter | Clé | Default |
|---|---|---|
| Target confidence C | conf | 0.95 |
| Number of units to test | n | 59 |
| Reliability (or conformity) to demonstrate R | rel | 0.95 |
| Failures allowed in the test (c) | c | 0 |
Clopper CJ, Pearson ES. (1934) Biometrika 26:404-413. ISO 2859-1 and ISO 16269-6. FDA Guidance: Process Validation (2011). GHTF/SG3/N99-10 (2004) Quality Management Systems — Process Validation Guidance.
Nonparametric tolerance interval (Wilks)
one-sided: C = 1 − P^n; two-sided (min, max): C = 1 − n P^{n−1} + (n − 1) P^n
| Parameter | Clé | Default |
|---|---|---|
| Target confidence | conf | 0.95 |
| Number of observations | n | 93 |
| Target population coverage (P) | cov | 0.95 |
| Interval | sides | 2 = Two-sided (min, max) / 1 = One-sided (maximum) |
Wilks SS. (1941) Determination of sample sizes for setting tolerance limits. Ann Math Stat 12:91-96. Wilks SS. (1942) Statistical prediction with special reference to the problem of tolerance limits. Ann Math Stat 13:400-409.