TriaLab Power Studio · Method

Two diagnostic tests' specificities compared in separate groups

Diagnostic accuracy Beta 8 published examples

Sizes the non-diseased participants per group needed to show that two diagnostic tests given to different participants differ in specificity, 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 specificities, two diagnostic tests, parallel groups, two-proportion z-test, Li and Fine.

Maturity

Beta: 8 published examples from PASS reproduce on every build; a second independent publication is wanted before the label becomes Validated (ADR-0001 §58). The catalogue’s row says which source is sought.

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:

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

  • Specificity 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 specificity.
  • Specificity 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 specificity.
  • Difference in specificity 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

  • Non-diseased participants per group (group 1 when the allocation is unequal) (non_diseased_per_group): a whole number, at least 1 Non-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 (8)

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 274, Tests for Two Independent Specificities Example 1: Sp₁ 0.75, Sp₂ 0.7875, 240 non-diseased per group, pooled z by the normal approximation => power 0.16356 Power alpha = 0.05; method = normal; non_diseased_per_group = 240; prevalence = 0.2; tails = two_sided; value_1 = 0.75; value_2 = 0.7875; variance = pooled; effect expressed as value_2 power = 0.16356 ± 0.000005
PASS chapter 274, Tests for Two Independent Specificities Example 1: Sp₁ 0.75, Sp₂ 0.7875, 1200 non-diseased per group, pooled z by the normal approximation => power 0.58663 Power alpha = 0.05; method = normal; non_diseased_per_group = 1200; prevalence = 0.2; tails = two_sided; value_1 = 0.75; value_2 = 0.7875; variance = pooled; effect expressed as value_2 power = 0.58663 ± 0.000005
PASS chapter 274, Tests for Two Independent Specificities Example 1: Sp₁ 0.75, Sp₂ 0.7875, 2400 non-diseased per group, pooled z by the normal approximation => power 0.8691 Power alpha = 0.05; method = normal; non_diseased_per_group = 2400; prevalence = 0.2; tails = two_sided; value_1 = 0.75; value_2 = 0.7875; variance = pooled; effect expressed as value_2 power = 0.8691 ± 0.000005
PASS chapter 274, Tests for Two Independent Specificities Example 1: Sp₁ 0.75, Sp₂ 0.825, 240 non-diseased per group, pooled z by the normal approximation => power 0.51943 Power alpha = 0.05; method = normal; non_diseased_per_group = 240; prevalence = 0.2; tails = two_sided; value_1 = 0.75; value_2 = 0.825; variance = pooled; effect expressed as value_2 power = 0.51943 ± 0.000005
PASS chapter 274, Tests for Two Independent Specificities Example 1: Sp₁ 0.75, Sp₂ 0.825, 720 non-diseased per group, pooled z by the normal approximation => power 0.93638 Power alpha = 0.05; method = normal; non_diseased_per_group = 720; prevalence = 0.2; tails = two_sided; value_1 = 0.75; value_2 = 0.825; variance = pooled; effect expressed as value_2 power = 0.93638 ± 0.000005
PASS chapter 274, Tests for Two Independent Specificities Example 2: 90% power by the normal approximation => 2655 non-diseased per group Sample size alpha = 0.05; method = normal; power_target = 0.9; prevalence = 0.2; tails = two_sided; value_1 = 0.75; value_2 = 0.7875; variance = pooled; effect expressed as value_2 non_diseased_per_group = 2655 ± 0
PASS chapter 274, Tests for Two Independent Specificities Example 2: 90% power by the normal approximation => 624 non-diseased per group Sample size alpha = 0.05; method = normal; power_target = 0.9; prevalence = 0.2; tails = two_sided; value_1 = 0.75; value_2 = 0.825; variance = pooled; effect expressed as value_2 non_diseased_per_group = 624 ± 0
Machin et al. 2009, through PASS 274 Example 3 Sp₁ 0.27, Sp₂ 0.66, ‘prevalence’ 0.75, two-sided 0.05, 80% power, enumerated => 24 non-diseased per group Sample size alpha = 0.05; method = enumeration; power_target = 0.8; prevalence = 0.75; tails = two_sided; value_1 = 0.27; value_2 = 0.66; variance = pooled; effect expressed as value_2 non_diseased_per_group = 24 ± 0

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 →