TriaLab Power Studio · Method

Single planned contrast of group means

Means & continuous Validated 11 published examples

Sizes a parallel trial of k groups for one pre-specified linear combination of the group means — a trend across doses, the pooled active arms against control, any contrast with coefficients summing to zero — tested by a t on N − k degrees of freedom with the variance pooled across all groups. Enter the coefficients themselves, one per group, with the group means beside them if you have them; or enter the two numbers they reduce to, the contrast’s value and the sum of its squared coefficients.

Also known as: planned comparison, a priori contrast, linear contrast, linear trend, dose-response trend, orthogonal contrast, contrast coefficients, pooled active arms versus control, single degree of freedom, one-way ANOVA contrast.

Maturity

Validated: 11 published examples from 3 independent publications (G*Power; Julious 2004; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — Sizing to a confidence-interval half-width for the contrast is well defined, but no source on disk works an example of it, so it is not offered rather than offered unchecked.
  • 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 group (all groups of equal size) (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 groups (groups): a whole number, at least 2 and at most 64; default 3; typically 2 to 6 (beyond about six arms, consider a dose-response model) How many parallel groups the one-way design has. Groups with a zero coefficient still count: their participants contribute to the pooled variance and its degrees of freedom.
  • Standard deviation within a group (sd): a number, above 0; default 1 The anticipated standard deviation of the outcome within any one group, assumed common to all groups and estimated by pooling across all of them.
  • Sum of the squared contrast coefficients (coefficient_ss): a number, above 0; default 2 The sum of the squares of the coefficients the contrast value was computed with. Two groups compared directly, coefficients (1, −1): 2. One group against the average of m others, (1, −1/m, …, −1/m): 1 + 1/m. A linear trend across k equally spaced doses with coefficients −(k−1)/2, …, (k−1)/2: k(k² − 1)/12, which is 5 for four doses. Scaling every coefficient scales this and the contrast value together and leaves the answer unchanged; what matters is that both use the same coefficients. Enter the coefficients themselves instead and this is computed for you, along with the contrast’s value if you also give the means.
  • Coefficient for each group (contrast_coefficients): one number per element, as many as groups One coefficient per group, in the order the groups are listed; they must sum to zero, which is what makes the combination a contrast. Two groups compared directly: 1, -1. One group against the average of three others: 1, -1/3, -1/3, -1/3. A linear trend across four equally spaced doses: -3, -1, 1, 3. A group not in the comparison takes 0 and still contributes to the pooled variance. Scaling every coefficient leaves the answer unchanged.
  • Value of the contrast (contrast_value): a number, any finite number; default 0.5 The linear combination of the true group means under the alternative, sum of coefficient × mean, computed with the same coefficients as the sum of squares. For the pooled active arms against control with coefficients (1, −1/2, −1/2) and means 10, 40, 40 it is −30; for a difference of 8 between two groups with coefficients (1, −1) it is 8. Under a margin frame this is the assumed true value, often zero.
  • Standardised contrast value (standardised_contrast): a number, any finite number The value of the contrast divided by the within-group standard deviation. For a direct comparison of two groups this is Cohen’s d.
  • Mean in each group (group_means): one number per element, as many as groups The true mean outcome anticipated in each group, in the order the coefficients are listed. The contrast’s value is their combination, sum of coefficient x mean. Needs the coefficients themselves, so select ‘One coefficient per group’ above.

Sizes entered when another axis is solved for

  • Participants per group (all groups of equal size) (participants_per_group): a whole number, at least 1 Participants per group (all groups of equal size). Required when solving for power or detectable effect; produced by the solver when solving for sample size.

Ways to express an input

Contrast coefficients — What the contrast compares. Give the coefficients themselves, or the one number the power depends on — the sum of their squares.

  • Sum of squared coefficients, the form’s default: The one number the power depends on. (fields coefficient_ss)
  • One coefficient per group: The contrast as the protocol states it; the sum of squares is computed from it. (fields contrast_coefficients)

Effect size — How large the contrast of the true means is.

  • Contrast value, the form’s default: The clinical quantity, in the units of the outcome. (fields contrast_value)
  • Standardised contrast: The value over the within-group SD. (fields standardised_contrast)
  • One mean per group: The value is computed from the means and the coefficients; needs the coefficients to be listed. (fields group_means)

Modifiers admitted

  • frame: Hypothesis frame
  • multiplicity: Multiplicity (a family of tests)
  • fdr: False-discovery rate (many features tested at once)
  • dropout: Dropout

Published examples it reproduces (11)

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
PASS 2026 chapter 539, Example 1 (printed p. 539-5), entered as its coefficients and means coefficients [-3.0, 1.0, 1.0, 1.0] and means [40.0, 10.0, 10.0, 10.0] entered as lists, SD 18, 6 per group, two-sided alpha 0.05 => power 0.91944 Power alpha = 0.05; contrast_coefficients = (-3, 1, 1, 1); group_means = (40, 10, 10, 10); groups = 4; participants_per_group = 6; sd = 18; coefficients expressed as listed; effect expressed as means power = 0.91944 ± 0.000005
PASS 2026 chapter 539, Example 2 (printed p. 539-8), entered as its coefficients and means coefficients [-2.0, 1.0, 1.0] and means [1.0, 2.0, 3.0] entered as lists, SD 5, 5 per group, two-sided alpha 0.05 => power 0.0797 Power alpha = 0.05; contrast_coefficients = (-2, 1, 1); group_means = (1, 2, 3); groups = 3; participants_per_group = 5; sd = 5; coefficients expressed as listed; effect expressed as means power = 0.0797 ± 0.00005
G*Power 3.1 manual §11.0.2-11.1 (Faul, Erdfelder, Lang & Buchner 2007), entered as its coefficients and means coefficients [-3.0, -1.0, 1.0, 3.0] and means [1.5, 2.0, 3.0, 4.0] entered as lists, SD 2, 5 per group, two-sided alpha 0.05 => power 0.514736 Power alpha = 0.05; contrast_coefficients = (-3, -1, 1, 3); group_means = (1.5, 2, 3, 4); groups = 4; participants_per_group = 5; sd = 2; coefficients expressed as listed; effect expressed as means power = 0.514736 ± 0.000002
PASS 2026 chapter 539, Example 1 (printed p. 539-5) Four groups, means 40, 10, 10, 10, coefficients (-3, 1, 1, 1) => value -90 and sum of squares 12; SD 18, two-sided alpha 0.05, 2 per group => power 0.34714 Power alpha = 0.05; coefficient_ss = 12; contrast_value = -90; groups = 4; participants_per_group = 2; sd = 18 power = 0.34714 ± 0.000005
PASS 2026 chapter 539, Example 1 (printed p. 539-5) Four groups, means 40, 10, 10, 10, coefficients (-3, 1, 1, 1) => value -90 and sum of squares 12; SD 18, two-sided alpha 0.05, 6 per group => power 0.91944 Power alpha = 0.05; coefficient_ss = 12; contrast_value = -90; groups = 4; participants_per_group = 6; sd = 18 power = 0.91944 ± 0.000005
PASS 2026 chapter 539, Example 1 (printed p. 539-5) Four groups, means 40, 10, 10, 10, coefficients (-3, 1, 1, 1) => value -90 and sum of squares 12; SD 24, two-sided alpha 0.05, 8 per group => power 0.84022 Power alpha = 0.05; coefficient_ss = 12; contrast_value = -90; groups = 4; participants_per_group = 8; sd = 24 power = 0.84022 ± 0.000005
PASS 2026 chapter 539, Example 2 (printed p. 539-8), hand calculation Three groups, means 1, 2, 3, coefficients (-2, 1, 1) => value 3 and sum of squares 6; SD 5, two-sided alpha 0.05, 5 per group => power 0.0797 Power alpha = 0.05; coefficient_ss = 6; contrast_value = 3; groups = 3; participants_per_group = 5; sd = 5 power = 0.0797 ± 0.00005
G*Power 3.1 manual §11.0.2-11.1 (Faul, Erdfelder, Lang & Buchner 2007), planned comparisons Four groups, means 1.5, 2, 3, 4, SD 2, 5 per group, two-sided alpha 0.05; the linear trend contrast has value 8.5 and sum of squares 20 => power 0.514736 (printed as an F(1, 16) with noncentrality f^2 N) Power alpha = 0.05; coefficient_ss = 20; contrast_value = 8.5; groups = 4; participants_per_group = 5; sd = 2 power = 0.514736 ± 0.000002
G*Power 3.1 manual §11.0.2-11.1 (Faul, Erdfelder, Lang & Buchner 2007), planned comparisons Four groups, means 1.5, 2, 3, 4, SD 2, 5 per group, two-sided alpha 0.05; the first two vs last two contrast has value 1.75 and sum of squares 1 => power 0.451898 (printed as an F(1, 16) with noncentrality f^2 N) Power alpha = 0.05; coefficient_ss = 1; contrast_value = 1.75; groups = 4; participants_per_group = 5; sd = 2 power = 0.451898 ± 0.000002
G*Power 3.1 manual §11.0.2-11.1 (Faul, Erdfelder, Lang & Buchner 2007), planned comparisons Four groups, means 1.5, 2, 3, 4, SD 2, 5 per group, two-sided alpha 0.05; the quadratic trend contrast has value 0.5 and sum of squares 4 => power 0.05797 (printed as an F(1, 16) with noncentrality f^2 N) Power alpha = 0.05; coefficient_ss = 4; contrast_value = 0.5; groups = 4; participants_per_group = 5; sd = 2 power = 0.05797 ± 0.000002
Julious 2004, Statist. Med. 23:1921-1986, §2.1.1, pp. 1929-1930 (hypertension example, Table I) Two groups, coefficients (1, -1) => value 8 mmHg and sum of squares 2; SD 40, two-sided alpha 0.05, power 0.90 => 527 per group, the exact-t answer the two-sample pooled kernel pins Sample size alpha = 0.05; coefficient_ss = 2; contrast_value = 8; groups = 2; power_target = 0.9; sd = 40 participants_per_group = 527 ± 0

Sources

  1. Cohen J. Statistical Power Analysis for the Behavioral Sciences. 2nd ed. Hillsdale, NJ: Lawrence Erlbaum; 1988. Chapter 8, §8.2 (the effect size f) and §8.3 (the single-numerator-degree-of-freedom case).
  2. Faul F, Erdfelder E, Lang A-G, Buchner A. G*Power 3: a flexible statistical power analysis program for the social, behavioral, and biomedical sciences. Behav Res Methods. 2007;39(2):175-191. Manual §11, planned comparisons.
  3. Julious SA. Sample sizes for clinical trials with Normal data. Stat Med. 2004;23(12):1921-1986.

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 →