TriaLab Power Studio · Method
Sensitivity and specificity of one diagnostic test, sized together
Sizes the total to screen in a prospective diagnostic accuracy study so that both the sensitivity’s test on the diseased and the specificity’s on the non-diseased reach the target — the larger of the two strata’s needs through the prevalence, the smaller of the two powers reported — and, under the Precision target, so that both confidence intervals are within the width asked (PASS 270 and 273).
Also known as: sensitivity and specificity, prospective diagnostic study, whole table, screening, prevalence, Li and Fine.
Maturity
Validated: 26 published examples from 2 independent publications (Li & Fine 2004; PASS) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: not offered — Two effects are sized here, the sensitivity’s and the specificity’s; size each on its own kernel to find the smallest it can detect.
- Precision: offered.
- 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:
- Participants screened (both strata together) (
participants), 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
- Null sensitivity (Se₀) (
sensitivity_null): a number, above 0 and below 1; default 0.7; entered as proportion (0-1) or percent The sensitivity the test must be shown to differ from. - Anticipated sensitivity (Se₁) (
sensitivity): a number, above 0 and below 1; default 0.85; entered as proportion (0-1) or percent The sensitivity the test is expected to have. - Null specificity (Sp₀) (
specificity_null): a number, above 0 and below 1; default 0.7; entered as proportion (0-1) or percent The specificity the test must be shown to differ from. - Anticipated specificity (Sp₁) (
specificity): a number, above 0 and below 1; default 0.85; entered as proportion (0-1) or percent The specificity the test is expected to have. - Disease prevalence among those screened (
prevalence): a number, above 0 and below 1; default 0.2; 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. - Test (
test): a choice; defaultexactThe exact binomial test on each stratum (PASS 270 after Li & Fine 2004), or the normal approximation.exactExact binomial test: PASS chapter 270.normalNormal approximation: Obuchowski 1998; Machin 2018 eq. 21.15.
- Sidedness of the test (
tails): a choice; defaulttwo_sidedTwo-sided splits alpha over both tails of each binomial; one-sided puts it in the tail of the anticipated direction.two_sidedTwo-sided: Alpha split over both tails.one_sidedOne-sided: Alpha in the tail of the anticipated direction.
- Confidence interval formula (Precision target) (
interval), advanced: a choice; defaultclopper_pearsonThe interval whose width the Precision target holds, at the anticipated value: PASS chapter 271’s five, Newcombe’s (1998) comparison behind them. The exact interval is the usual choice for a sensitivity near one.clopper_pearsonExact (Clopper–Pearson): Inverts the binomial distribution; never below the nominal level.wilsonScore (Wilson): Inverts the score test; not centred on the estimate.wilson_ccScore with continuity correction: Wilson’s, corrected.waldSimple asymptotic: The estimate ± z times its standard error.wald_ccSimple asymptotic with continuity correction: The Wald interval, corrected by 1/(2n).
- Half-width to hold for both intervals (
half_width_target): a number, above 0; entered as proportion (0-1) or percent Half the width each confidence interval may reach at its anticipated value — PASS 273’s width is twice this. Used when solving for precision; ignored for every other target.
Sizes entered when another axis is solved for
- Participants screened (both strata together) (
participants): a whole number, at least 1 Participants screened (both strata together). Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Modifiers admitted
dropout: Dropout
Published examples it reproduces (26)
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 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 300 screened at 6% => sensitivity power 0.07259, specificity power 0.97191; the smaller is the design’s | Power | alpha = 0.05; participants = 300; prevalence = 0.06; sensitivity = 0.781; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power = 0.07259 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 300 screened => specificity power 0.97191 as a row | Power | alpha = 0.05; participants = 300; prevalence = 0.06; sensitivity = 0.781; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power_specificity = 0.97191 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 600 screened at 6% => sensitivity power 0.1843, specificity power 0.99992; the smaller is the design’s | Power | alpha = 0.05; participants = 600; prevalence = 0.06; sensitivity = 0.8165; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power = 0.1843 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 600 screened => specificity power 0.99992 as a row | Power | alpha = 0.05; participants = 600; prevalence = 0.06; sensitivity = 0.8165; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power_specificity = 0.99992 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 1200 screened at 6% => sensitivity power 0.8289, specificity power 1; the smaller is the design’s | Power | alpha = 0.05; participants = 1200; prevalence = 0.06; sensitivity = 0.852; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power = 0.8289 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 1200 screened => specificity power 1 as a row | Power | alpha = 0.05; participants = 1200; prevalence = 0.06; sensitivity = 0.852; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power_specificity = 1 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 2700 screened at 6% => sensitivity power 0.99995, specificity power 1; the smaller is the design’s | Power | alpha = 0.05; participants = 2700; prevalence = 0.06; sensitivity = 0.8875; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power = 0.99995 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 1: 2700 screened => specificity power 1 as a row | Power | alpha = 0.05; participants = 2700; prevalence = 0.06; sensitivity = 0.8875; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
power_specificity = 1 ± 0.000005 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 2: 90% power for both at 6% prevalence => 6683 screened, the sensitivity binding (PASS rounds the strata to the nearest, this engine floors them, so its 6683 is 6684 here) | Sample size | alpha = 0.05; power_target = 0.9; prevalence = 0.06; sensitivity = 0.781; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
participants = 6683 ± 1 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 2: 90% power for both at 6% prevalence => 2883 screened, the sensitivity binding (PASS rounds the strata to the nearest, this engine floors them, so its 6683 is 6684 here) | Sample size | alpha = 0.05; power_target = 0.9; prevalence = 0.06; sensitivity = 0.8165; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
participants = 2883 ± 1 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 2: 90% power for both at 6% prevalence => 1550 screened, the sensitivity binding (PASS rounds the strata to the nearest, this engine floors them, so its 6683 is 6684 here) | Sample size | alpha = 0.05; power_target = 0.9; prevalence = 0.06; sensitivity = 0.852; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
participants = 1550 ± 1 |
| PASS chapter 270, Tests for One-Sample Sensitivity and Specificity | Example 2: 90% power for both at 6% prevalence => 917 screened, the sensitivity binding (PASS rounds the strata to the nearest, this engine floors them, so its 6683 is 6684 here) | Sample size | alpha = 0.05; power_target = 0.9; prevalence = 0.06; sensitivity = 0.8875; sensitivity_null = 0.71; specificity = 0.902; specificity_null = 0.82; tails = two_sided; test = exact |
participants = 917 ± 1 |
| Li & Fine 2004, Stat Med 23:2537, p. 2545, through PASS 270 Example 3 | Se and Sp 0.5 against 0.9, prevalence 0.01, one-sided 0.05, 90% power => 1100 screened | Sample size | alpha = 0.05; power_target = 0.9; prevalence = 0.01; sensitivity = 0.9; sensitivity_null = 0.5; specificity = 0.9; specificity_null = 0.5; tails = one_sided; test = exact |
participants = 1100 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.5, specificity 0.6, exact intervals of width 0.04, prevalence 0.2 => 12245 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.2; sensitivity = 0.5; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 12245 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.5, specificity 0.6, exact intervals of width 0.04, prevalence 0.3 => 8164 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.3; sensitivity = 0.5; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 8164 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.5, specificity 0.6, exact intervals of width 0.04, prevalence 0.4 => 6123 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.4; sensitivity = 0.5; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 6123 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.5, specificity 0.6, exact intervals of width 0.04, prevalence 0.5 => 4898 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.5; sensitivity = 0.5; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 4898 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.5, specificity 0.6, exact intervals of width 0.04, prevalence 0.6 => 5883 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.6; sensitivity = 0.5; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 5883 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.6, specificity 0.6, exact intervals of width 0.04, prevalence 0.2 => 11765 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.2; sensitivity = 0.6; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 11765 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.6, specificity 0.6, exact intervals of width 0.04, prevalence 0.5 => 4706 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.5; sensitivity = 0.6; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 4706 ± 0 |
| PASS chapter 273, Confidence Intervals for One-Sample Sensitivity and Specificity | Example 1: sensitivity 0.6, specificity 0.6, exact intervals of width 0.04, prevalence 0.6 => 5883 screened, the larger of the two | Precision | alpha = 0.05; half_width_target = 0.02; interval = clopper_pearson; prevalence = 0.6; sensitivity = 0.6; sensitivity_null = 0.5; specificity = 0.6; specificity_null = 0.5; tails = two_sided; test = exact |
participants = 5883 ± 0 |
| Li & Fine 2004, Stat Med 23:2537, Table II (printed p. 2546) | Se₀ 0.8 against 0.9 and Sp₀ 0.85 against 0.95, prevalence 0.01, each exact test one-sided at 0.0253 with power 0.894 (their overall 0.05 and 0.8) => 13100 screened, Method 0 (131 diseased, 93 non-diseased, over their shares; the sensitivity binding) | Sample size | alpha = 0.0253; power_target = 0.894; prevalence = 0.01; sensitivity = 0.9; sensitivity_null = 0.8; specificity = 0.95; specificity_null = 0.85; tails = one_sided; test = exact |
participants = 13100 ± 0 |
| Li & Fine 2004, Stat Med 23:2537, Table II (printed p. 2546) | Se₀ 0.8 against 0.9 and Sp₀ 0.85 against 0.95, prevalence 0.1, each exact test one-sided at 0.0253 with power 0.894 (their overall 0.05 and 0.8) => 1310 screened, Method 0 (131 diseased, 93 non-diseased, over their shares; the sensitivity binding) | Sample size | alpha = 0.0253; power_target = 0.894; prevalence = 0.1; sensitivity = 0.9; sensitivity_null = 0.8; specificity = 0.95; specificity_null = 0.85; tails = one_sided; test = exact |
participants = 1310 ± 0 |
| Li & Fine 2004, Stat Med 23:2537, Table II (printed p. 2546) | Se₀ 0.8 against 0.9 and Sp₀ 0.85 against 0.95, prevalence 0.3, each exact test one-sided at 0.0253 with power 0.894 (their overall 0.05 and 0.8) => 437 screened, Method 0 (131 diseased, 93 non-diseased, over their shares; the sensitivity binding) | Sample size | alpha = 0.0253; power_target = 0.894; prevalence = 0.3; sensitivity = 0.9; sensitivity_null = 0.8; specificity = 0.95; specificity_null = 0.85; tails = one_sided; test = exact |
participants = 437 ± 0 |
| Li & Fine 2004, Stat Med 23:2537, Table II (printed p. 2546) | Se₀ 0.8 against 0.9 and Sp₀ 0.85 against 0.95, prevalence 0.5, each exact test one-sided at 0.0253 with power 0.894 (their overall 0.05 and 0.8) => 262 screened, Method 0 (131 diseased, 93 non-diseased, over their shares; the sensitivity binding) | Sample size | alpha = 0.0253; power_target = 0.894; prevalence = 0.5; sensitivity = 0.9; sensitivity_null = 0.8; specificity = 0.95; specificity_null = 0.85; tails = one_sided; test = exact |
participants = 262 ± 0 |
| Li & Fine 2004, Stat Med 23:2537, Table II (printed p. 2546) | Se₀ 0.8 against 0.9 and Sp₀ 0.85 against 0.95, prevalence 0.7, each exact test one-sided at 0.0253 with power 0.894 (their overall 0.05 and 0.8) => 310 screened, Method 0 (131 diseased, 93 non-diseased, over their shares; the specificity binding) | Sample size | alpha = 0.0253; power_target = 0.894; prevalence = 0.7; sensitivity = 0.9; sensitivity_null = 0.8; specificity = 0.95; specificity_null = 0.85; tails = one_sided; test = exact |
participants = 310 ± 0 |
Sources
- NCSS. PASS Sample Size Software, chapter 270: Tests for One-Sample Sensitivity and Specificity; chapter 273: Confidence Intervals for One-Sample Sensitivity and Specificity.
- 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 →