Diagnostic Study Sample Size
Standard power analysis (for comparing two groups) does not apply to single-arm diagnostic accuracy studies. Instead, Buderer's formula sizes the study to achieve a desired precision (CI width) for sensitivity and specificity.
The key formula for diseased subjects:
And for non-diseased subjects:
Total N = max(n_diseased/prevalence, n_healthy/(1−prevalence))
This ensures both sensitivity and specificity are estimated with the desired precision.