TriaLab Power Studio · Method

Two diagnostic tests' sensitivities compared in separate groups

Diagnostic accuracy Validated 18 published examples

Sizes the diseased participants per group needed to show that two diagnostic tests given to different participants differ in sensitivity, by the two-proportion z-test on the strata with its power enumerated over the two binomials (PASS 275 after Li & Fine) or approximated, and turns each group’s stratum into the total to screen through the prevalence.

Also known as: two independent sensitivities, two diagnostic tests, parallel groups, two-proportion z-test, Li and Fine.

Maturity

Validated: 18 published examples from 2 independent publications (Machin, Campbell, Tan & Tan 2018; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — No source on disk sizes the interval for a difference of two sensitivities; PASS sizes the test only.
  • 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 participant is tested once, so calendar time does not enter the power function.

Size axes:

  • Diseased participants per group (group 1 when the allocation is unequal) (diseased_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

  • Sensitivity of test 1 (group 1) (value_1): a number, above 0 and below 1; default 0.7; entered as proportion (0-1) or percent The existing or reference test’s sensitivity.
  • Sensitivity of test 2 (group 2) (value_2): a number, above 0 and below 1; default 0.8; entered as proportion (0-1) or percent The new test’s anticipated sensitivity.
  • Difference in sensitivity to detect (test 2 − test 1) (difference): a number, above -1 and below 1; default 0.1; entered as proportion (0-1) or percent Negative when test 2 is the worse.
  • Disease prevalence among those screened (blank: the stratum is sampled directly) (prevalence): a number, above 0 and below 1; entered as proportion (0-1) or percent In a prospective study every participant is tested and the diseased are found afterwards, so the stratum the design needs is reached only by screening its count divided by the prevalence — the total is a derived row. Leave blank for a case–control design that recruits the stratum directly.
  • Power calculation (method): a choice; default enumeration Enumeration evaluates the z statistic at every pair of counts and sums the binomial mass of those that reject — the exact power of the asymptotic test, and its realised size; the normal approximation is PASS chapter 200’s formula.
    • enumeration Binomial enumeration: PASS 275’s default; up to 2000 per group.
    • normal Normal approximation: PASS 274’s; Obuchowski 1998 and Machin 2018 print the size formula.
  • Variance of the z statistic (variance), advanced: a choice; default pooled Pooled estimates one proportion under the null for the standard error, the chi-square test’s arithmetic; unpooled keeps the two.
    • pooled Pooled: PASS’s default.
    • unpooled Unpooled: Each group’s own variance.
  • Sidedness of the test (tails): a choice; default two_sided Two-sided counts both tails; one-sided the tail of the anticipated direction.
    • two_sided Two-sided: Alpha split over both tails.
    • one_sided One-sided: Alpha in the tail of the anticipated direction.

Sizes entered when another axis is solved for

  • Diseased participants per group (group 1 when the allocation is unequal) (diseased_per_group): a whole number, at least 1 Diseased participants per group (group 1 when the allocation is unequal). Required when solving for power or detectable effect; produced by the solver when solving for sample size.

Ways to express an input

The difference to detect — Test 2’s value, or its difference from test 1’s.

  • Test 2’s value, the form’s default: PASS’s spelling. (fields value_2)
  • Difference: Obuchowski’s δ. (fields difference)

Modifiers admitted

  • allocation: Allocation
  • dropout: Dropout

Published examples it reproduces (18)

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 chapter 275, Tests for Two Independent Sensitivities Example 1: Se₁ 0.71, Se₂ 0.781, 60 diseased per group (20% of 300), pooled z enumerated => power 0.14899 Power alpha = 0.05; diseased_per_group = 60; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.781; variance = pooled; effect expressed as value_2 power = 0.14899 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: the realised size at 60 per group, 0.0512 Power alpha = 0.05; diseased_per_group = 60; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.781; variance = pooled; effect expressed as value_2 actual_alpha = 0.0512 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: Se₁ 0.71, Se₂ 0.781, 300 diseased per group (20% of 1500), pooled z enumerated => power 0.51535 Power alpha = 0.05; diseased_per_group = 300; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.781; variance = pooled; effect expressed as value_2 power = 0.51535 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: the realised size at 300 per group, 0.05037 Power alpha = 0.05; diseased_per_group = 300; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.781; variance = pooled; effect expressed as value_2 actual_alpha = 0.05037 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: Se₁ 0.71, Se₂ 0.781, 600 diseased per group (20% of 3000), pooled z enumerated => power 0.8077 Power alpha = 0.05; diseased_per_group = 600; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.781; variance = pooled; effect expressed as value_2 power = 0.8077 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: the realised size at 600 per group, 0.05009 Power alpha = 0.05; diseased_per_group = 600; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.781; variance = pooled; effect expressed as value_2 actual_alpha = 0.05009 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: Se₁ 0.71, Se₂ 0.8165, 60 diseased per group (20% of 300), pooled z enumerated => power 0.28422 Power alpha = 0.05; diseased_per_group = 60; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8165; variance = pooled; effect expressed as value_2 power = 0.28422 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: the realised size at 60 per group, 0.04852 Power alpha = 0.05; diseased_per_group = 60; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8165; variance = pooled; effect expressed as value_2 actual_alpha = 0.04852 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: Se₁ 0.71, Se₂ 0.8165, 240 diseased per group (20% of 1200), pooled z enumerated => power 0.7879 Power alpha = 0.05; diseased_per_group = 240; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8165; variance = pooled; effect expressed as value_2 power = 0.7879 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: the realised size at 240 per group, 0.05 Power alpha = 0.05; diseased_per_group = 240; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8165; variance = pooled; effect expressed as value_2 actual_alpha = 0.05 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: Se₁ 0.71, Se₂ 0.8165, 600 diseased per group (20% of 3000), pooled z enumerated => power 0.99197 Power alpha = 0.05; diseased_per_group = 600; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8165; variance = pooled; effect expressed as value_2 power = 0.99197 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 1: the realised size at 600 per group, 0.0502 Power alpha = 0.05; diseased_per_group = 600; method = enumeration; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8165; variance = pooled; effect expressed as value_2 actual_alpha = 0.0502 ± 0.000005
PASS chapter 275, Tests for Two Independent Sensitivities Example 2: 90% power => 788 diseased per group Sample size alpha = 0.05; method = enumeration; power_target = 0.9; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.781; variance = pooled; effect expressed as value_2 diseased_per_group = 788 ± 0
PASS chapter 275, Tests for Two Independent Sensitivities Example 2: 90% power => 331 diseased per group Sample size alpha = 0.05; method = enumeration; power_target = 0.9; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8165; variance = pooled; effect expressed as value_2 diseased_per_group = 331 ± 0
PASS chapter 275, Tests for Two Independent Sensitivities Example 2: 90% power => 175 diseased per group Sample size alpha = 0.05; method = enumeration; power_target = 0.9; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.852; variance = pooled; effect expressed as value_2 diseased_per_group = 175 ± 0
PASS chapter 275, Tests for Two Independent Sensitivities Example 2: 90% power => 103 diseased per group Sample size alpha = 0.05; method = enumeration; power_target = 0.9; prevalence = 0.2; tails = two_sided; value_1 = 0.71; value_2 = 0.8875; variance = pooled; effect expressed as value_2 diseased_per_group = 103 ± 0
Machin et al. 2009, pp. 166–167, through PASS 275 Example 3 Se₁ 0.27, Se₂ 0.66, prevalence 0.25, two-sided 0.05, 80% power, enumerated => 24 diseased per group, 96 screened per group (Machin’s formula gives 98 per group) Sample size alpha = 0.05; method = enumeration; power_target = 0.8; prevalence = 0.25; tails = two_sided; value_1 = 0.27; value_2 = 0.66; variance = pooled; effect expressed as value_2 diseased_per_group = 24 ± 0
Machin, Campbell, Tan & Tan 2018, Example 21.4 Se_A 0.27, Se_B 0.66, prevalence 0.25, two-sided 5%, 80% power by equation 21.16 => his 195.70, 196 screened in all; this engine rounds the stratum first (24.46 → 25 per group) and screens 200 Sample size alpha = 0.05; method = normal; power_target = 0.8; prevalence = 0.25; tails = two_sided; value_1 = 0.27; value_2 = 0.66; variance = pooled; effect expressed as value_2 participants_screened = 196 ± 4

Sources

  1. NCSS. PASS Sample Size Software, chapter 275: Tests for Two Independent Sensitivities; chapter 274: Tests for Two Independent Specificities.
  2. Li J, Fine J. On sample size for sensitivity and specificity in prospective diagnostic accuracy studies. Stat Med. 2004;23:2537-2550.
  3. Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §21.3, equation 21.16.

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 →