TriaLab Power Studio · Method
ANCOVA — group means adjusted for covariates
Sizes a parallel trial of two or more arms whose analysis adjusts for baseline covariates, using Shieh’s exact random-covariate distribution rather than the conventional fixed-covariate approximation, which over-states power and under-sizes the trial. Equal allocation across arms.
Also known as: ANCOVA, analysis of covariance, baseline adjustment, covariate adjustment, adjusted means, change from baseline, R-squared, Shieh.
Maturity
Validated: 6 published examples from 2 independent publications (Borm, Fransen & Lemmens 2007; Shieh 2020) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — Precision sizing has no single meaning for an omnibus test: there is no one adjusted contrast to put a confidence interval around. Size a specific contrast instead.
- 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: participants are assessed at a fixed follow-up, so calendar time does not enter the power function.
Size axes:
- Participants per arm (equal allocation across all arms) (
participants_per_group), 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
- Number of arms (
groups): a whole number, at least 2; default 2; typically 2 to 6 (two arms is the common case) How many treatment groups the trial compares. Two is the usual baseline-adjusted randomised trial; three or more brings in the omnibus question. - Number of covariates (
covariates): a whole number, at least 1; default 1; typically 1 to 4 (one baseline value is typical) How many continuous variables the analysis adjusts for. One is the usual baseline measurement of the outcome. Every extra covariate costs a degree of freedom and, less obviously, widens the chance imbalance the adjustment has to absorb — which is why the required sample size here grows with this number even when R-squared does not. - Standard deviation of the outcome (
sd): a number, above 0; default 1 The anticipated standard deviation of the outcome within an arm ignoring the covariates — the number a published unadjusted analysis reports. The residual standard deviation the analysis will actually see is smaller, and is derived from this and R-squared. - R-squared with the covariates (
r_squared): a number, at least 0 and below 1; default 0.36; typically 0.16 to 0.64 (baseline correlation 0.4 to 0.8); entered as proportion (0-1) or percent The proportion of the outcome’s variance the covariates explain. For a single baseline measurement of the same outcome this is the square of the baseline-to-follow-up correlation: a correlation of 0.6 gives 0.36. Values above about 0.7 are unusual outside tightly controlled laboratory measures. - Spread of the arm means (
sd_of_means): a number, above 0; default 0.25 The standard deviation of the true arm means about their own average, in the units of the outcome: sqrt(sum (mu_i - mu_bar)^2 / G). For two arms this is simply half the difference between them, so a difference of 0.6 is a spread of 0.3. - Cohen’s f, before adjustment (
effect_f_unadjusted): a number, above 0; default 0.25; typically 0.1 to 0.4 (Cohen’s small / medium / large) The spread of the arm means divided by the unadjusted standard deviation — the effect size a published ANOVA reports. Use this when taking the effect from a study that did not adjust for covariates; the R-squared field converts it. - Cohen’s f, adjusted (Shieh’s delta) (
effect_f): a number, above 0; default 0.3125 The spread of the arm means divided by the residual standard deviation, after the covariates. This is the quantity the test statistic is built from; R-squared has already been absorbed into it, so changing R-squared will not change this number.
Sizes entered when another axis is solved for
- Participants per arm (equal allocation across all arms) (
participants_per_group): a whole number, at least 1 Participants per arm (equal allocation across all arms). Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Ways to express an input
Effect size — How far apart the arm means are. The omnibus F sees them only through their spread; what differs between these three is which standard deviation that spread is measured against.
- Spread of arm means, the form’s default: In outcome units — the clinical quantity. (fields
sd_of_means) - Cohen’s f from an unadjusted analysis: What a published ANOVA reports; converted using R-squared. (fields
effect_f_unadjusted) - Cohen’s f on the residual scale: The canonical form; use it when the published effect already accounts for the covariates. (fields
effect_f)
Modifiers admitted
multiplicity: Multiplicity (a family of tests)fdr: False-discovery rate (many features tested at once)dropout: Dropout
Published examples it reproduces (6)
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 |
|---|---|---|---|---|
| Shieh 2020, Psychometrika 85:101-120, Table 2 (rho 0.5, means 400/450/500) | G 3, delta^2 0.2222, one covariate, N 48 => exact power 0.8042. The conventional formula reports 0.8136 at the same design | Power | alpha = 0.05; covariates = 1; effect_f = 0.471405; groups = 3; participants_per_group = 16; r_squared = 0; sd = 1; effect expressed as standardised |
power = 0.8042 ± 0.00015 |
| Shieh 2020, Psychometrika 85:101-120, Table 1 (rho 0.1, means 400/450/500) | G 3, delta^2 0.1684, one covariate, N 63 => exact power 0.8115. With rho this small the covariate barely helps and the exact and conventional answers nearly coincide (0.8185) | Power | alpha = 0.05; covariates = 1; effect_f = 0.410305; groups = 3; participants_per_group = 21; r_squared = 0; sd = 1; effect expressed as standardised |
power = 0.8115 ± 0.00015 |
| Shieh 2020, Psychometrika 85:101-120, Table 3 (rho 0.9, means 400/450/500) | G 3, delta^2 0.8772, one covariate, N 18 => exact power 0.8751. A strongly predictive covariate and a tiny trial: the conventional route stops at N 15 | Power | alpha = 0.05; covariates = 1; effect_f = 0.936586; groups = 3; participants_per_group = 6; r_squared = 0; sd = 1; effect expressed as standardised |
power = 0.8751 ± 0.00015 |
| Shieh 2020, Psychometrika 85:101-120, Table 5 (rho 0.5, means 410/450/490) | G 3, delta^2 0.1422, four covariates, N 78 => exact power 0.8177 | Power | alpha = 0.05; covariates = 4; effect_f = 0.377124; groups = 3; participants_per_group = 26; r_squared = 0; sd = 1; effect expressed as standardised |
power = 0.8177 ± 0.00015 |
| Shieh 2020, Psychometrika 85:101-120, Table 6 (rho 0.9, means 410/450/490) | G 3, delta^2 0.5614, ten covariates, N 33 => exact power 0.8325. The far corner of the correction: the conventional formula sizes this design at N 24 and claims 0.8203, where simulation puts its true power at 0.5493 | Power | alpha = 0.05; covariates = 10; effect_f = 0.749269; groups = 3; participants_per_group = 11; r_squared = 0; sd = 1; effect expressed as standardised |
power = 0.8325 ± 0.00015 |
| Borm, Fransen & Lemmens 2007, J Clin Epidemiol 60:1234-1238, p. 1237, via PASS 2026 chapter 591 Example 2 | Two arms, mean difference 0.6 (spread 0.3), sd 1.2, one covariate at R^2 0.25, alpha 0.05, 80% power => Borm’s normal approximation gives 95 in total (47.5 per arm); both PASS’s noncentral F and this kernel’s exact method give 98 (49 per arm) | Sample size | alpha = 0.05; covariates = 1; groups = 2; power_target = 0.8; r_squared = 0.25; sd = 1.2; sd_of_means = 0.3; effect expressed as sd_of_means |
participants_per_group = 47.5 ± 2.5 |
Sources
- Shieh G. Power analysis and sample size planning in ANCOVA designs. Psychometrika. 2020;85(1):101-120. Equations 28-29 and Tables 1-6.
- Borm GF, Fransen J, Lemmens WAJG. A simple sample size formula for analysis of covariance in randomized clinical trials. J Clin Epidemiol. 2007;60(12):1234-1238.
- Cohen J. Statistical Power Analysis for the Behavioral Sciences. 2nd ed. Hillsdale, NJ: Lawrence Erlbaum; 1988. pp. 379-380 (the fixed-covariate approximation).
- Keppel G. Design and Analysis: A Researcher’s Handbook. 3rd ed. Englewood Cliffs: Prentice Hall; 1991. pp. 323-324.
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 →