TriaLab Power Studio · Method

Two diagnostic tests' specificities compared in the same participants (paired)

Diagnostic accuracy Beta 10 published examples

Sizes the non-diseased participants needed to show that two diagnostic tests given to the same participants differ in specificity, by McNemar’s test on the stratum with the power enumerated over the discordant pairs (PASS 276 after Li & Fine) or by Connor’s or Miettinen’s normal approximation, and turns the stratum into the total to screen through the prevalence.

Also known as: paired specificities, McNemar, discordant pairs, two diagnostic tests, same patients, Li and Fine, Schork and Williams, Miettinen.

Maturity

Beta: 10 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 paired difference of 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 with both tests, so calendar time does not enter the power function.

Size axes:

  • Non-diseased participants (each given both tests) (non_diseased), 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 (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 (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.
  • Proportion of the stratum on which the two tests disagree (proportion_discordant): a number, above 0 and below 1; default 0.3; entered as proportion (0-1) or percent P(b) + P(c): the share of the stratum positive on one test and negative on the other. It can be no smaller than the difference and no larger than p₁(1 − p₂) + p₂(1 − p₁), its value with the tests independent; a larger value asks for more participants and is the safer guess (Obuchowski 1998).
  • 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.
  • Method (test): a choice; default exact The exact power enumerates the discordant count and the conditional binomial test on it (PASS’s multinomial enumeration). Connor’s approximation is the normal one Obuchowski (1998) recommends; Machin 1997’s, the one PASS offers as its normal approximation, is the same formula written in the odds of the discordant cells — about 10% below the exact size, PASS notes. Miettinen’s is the one Machin, Campbell, Tan & Tan (2009, eq. 13.18) print, at the discordance of independent tests.
    • exact Exact (enumerated): PASS 276 after Schork & Williams 1980.
    • connor Normal approximation (Connor): Obuchowski 1998, eq. 4.4.
    • machin Normal approximation (Machin 1997, PASS’s): Conditional, in the odds of the discordant cells.
    • miettinen Normal approximation (Miettinen): Machin, Campbell, Tan & Tan 2009, eq. 13.18.
  • Sidedness of the test (tails): a choice; default two_sided Two-sided splits alpha over both tails (PASS’s default); one-sided puts it in 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 (each given both tests) (non_diseased): a whole number, at least 1 Non-diseased participants (each given both tests). 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

  • dropout: Dropout

Published examples it reproduces (10)

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 232, Tests for Paired Specificities Example 1: Sp₁ 0.75, Sp₂ 0.7875, discordance 0.3, 240 non-diseased, PASS’s normal approximation (Machin 1997, conditional) => power 0.18368 Power alpha = 0.05; non_diseased = 240; prevalence = 0.2; proportion_discordant = 0.3; tails = two_sided; test = machin; value_1 = 0.75; value_2 = 0.7875; effect expressed as value_2 power = 0.18368 ± 0.000005
PASS chapter 232, Tests for Paired Specificities Example 1: Sp₁ 0.75, Sp₂ 0.7875, discordance 0.3, 960 non-diseased, PASS’s normal approximation (Machin 1997, conditional) => power 0.56424 Power alpha = 0.05; non_diseased = 960; prevalence = 0.2; proportion_discordant = 0.3; tails = two_sided; test = machin; value_1 = 0.75; value_2 = 0.7875; effect expressed as value_2 power = 0.56424 ± 0.000005
PASS chapter 232, Tests for Paired Specificities Example 1: Sp₁ 0.75, Sp₂ 0.7875, discordance 0.3, 1920 non-diseased, PASS’s normal approximation (Machin 1997, conditional) => power 0.85141 Power alpha = 0.05; non_diseased = 1920; prevalence = 0.2; proportion_discordant = 0.3; tails = two_sided; test = machin; value_1 = 0.75; value_2 = 0.7875; effect expressed as value_2 power = 0.85141 ± 0.000005
PASS chapter 232, Tests for Paired Specificities Example 1: Sp₁ 0.75, Sp₂ 0.825, discordance 0.3, 240 non-diseased, PASS’s normal approximation (Machin 1997, conditional) => power 0.5647 Power alpha = 0.05; non_diseased = 240; prevalence = 0.2; proportion_discordant = 0.3; tails = two_sided; test = machin; value_1 = 0.75; value_2 = 0.825; effect expressed as value_2 power = 0.5647 ± 0.000005
PASS chapter 232, Tests for Paired Specificities Example 1: Sp₁ 0.75, Sp₂ 0.825, discordance 0.3, 720 non-diseased, PASS’s normal approximation (Machin 1997, conditional) => power 0.95824 Power alpha = 0.05; non_diseased = 720; prevalence = 0.2; proportion_discordant = 0.3; tails = two_sided; test = machin; value_1 = 0.75; value_2 = 0.825; effect expressed as value_2 power = 0.95824 ± 0.000005
PASS chapter 232, Tests for Paired Specificities Example 2: 90% power by PASS’s normal approximation => 2238 non-diseased Sample size alpha = 0.05; power_target = 0.9; prevalence = 0.2; proportion_discordant = 0.3; tails = two_sided; test = machin; value_1 = 0.75; value_2 = 0.7875; effect expressed as value_2 non_diseased = 2238 ± 0
PASS chapter 232, Tests for Paired Specificities Example 2: 90% power by PASS’s normal approximation => 557 non-diseased Sample size alpha = 0.05; power_target = 0.9; prevalence = 0.2; proportion_discordant = 0.3; tails = two_sided; test = machin; value_1 = 0.75; value_2 = 0.825; effect expressed as value_2 non_diseased = 557 ± 0
Machin, Campbell, Tan & Tan 2009, pp. 166–167, through PASS 232 Example 3 Sp₁ 0.27, Sp₂ 0.66, discordance 0.4, two-sided 0.05, 80% power => 20 non-diseased, 80 screened at 0.75; Machin’s conditional formulas give 80 and 100 without a discordance Sample size alpha = 0.05; power_target = 0.8; prevalence = 0.75; proportion_discordant = 0.4; tails = two_sided; test = exact; value_1 = 0.27; value_2 = 0.66; effect expressed as value_2 non_diseased = 20 ± 0
Machin, Campbell, Tan & Tan 2009, pp. 166–167, through PASS 232 Example 3 Sp₁ 0.27, Sp₂ 0.66, discordance 0.5, two-sided 0.05, 80% power => 26 non-diseased, 104 screened at 0.75; Machin’s conditional formulas give 80 and 100 without a discordance Sample size alpha = 0.05; power_target = 0.8; prevalence = 0.75; proportion_discordant = 0.5; tails = two_sided; test = exact; value_1 = 0.27; value_2 = 0.66; effect expressed as value_2 non_diseased = 26 ± 0
Machin, Campbell, Tan & Tan 2009, pp. 166–167, through PASS 232 Example 3 Sp₁ 0.27, Sp₂ 0.66, discordance 0.6, two-sided 0.05, 80% power => 32 non-diseased, 128 screened at 0.75; Machin’s conditional formulas give 80 and 100 without a discordance Sample size alpha = 0.05; power_target = 0.8; prevalence = 0.75; proportion_discordant = 0.6; tails = two_sided; test = exact; value_1 = 0.27; value_2 = 0.66; effect expressed as value_2 non_diseased = 32 ± 0

Sources

  1. NCSS. PASS Sample Size Software, chapter 276: Tests for Paired Sensitivities; chapter 232: Tests for Paired Specificities.
  2. Schork MA, Williams GW. Number of observations required for the comparison of two correlated proportions. Commun Stat Simul Comput. 1980;9:349-357.
  3. Obuchowski NA. Sample size calculations in studies of test accuracy. Stat Methods Med Res. 1998;7:371-392. §4, after Connor RJ (1987) Biometrics 43:207-211.
  4. Miettinen OS. The matched pairs design in the case of all-or-none responses. Biometrics. 1968;24:339-352.
  5. Machin D, Campbell MJ, Tan SB, Tan SH. Sample Size Tables for Clinical Studies. 3rd ed. Chichester: Wiley-Blackwell; 2009.
  6. Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §21.3.
  7. Li J, Fine J. On sample size for sensitivity and specificity in prospective diagnostic accuracy studies. Stat Med. 2004;23:2537-2550.

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 →