Title: | Choosing Sample Size for Evaluating a Diagnostic Test |
---|---|
Description: | Calculates the sample size needed for evaluating a diagnostic test based on sensitivity, specificity, prevalence, and desired precision. Based on Buderer (1996) <doi:10.1111/j.1553-2712.1996.tb03538.x>. |
Authors: | Mohamed Kamal [aut, cre] |
Maintainer: | Mohamed Kamal <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2025-02-24 02:46:33 UTC |
Source: | https://github.com/cran/SampleSizeDiagnostics |
This function calculates the sample size needed for evaluating a diagnostic test based on sensitivity, specificity, prevalence, and desired precision.
SampleSizeDiagnostics(sn, sp, p, w = 0.1, CI = 0.95)
SampleSizeDiagnostics(sn, sp, p, w = 0.1, CI = 0.95)
sn |
Sensitivity of the diagnostic test. |
sp |
Specificity of the diagnostic test. |
p |
Prevalence of the disease. |
w |
Desired width of the confidence interval (default is 0.10). |
CI |
Confidence interval level, either 0.95 or 0.9 (default is 0.95). Only 0.95 and 0.9 are allowed. |
Abstract of Buderer (1996): Careful consideration of statistical issues related to the choice of a sample size is critical for achieving meaningful results in research studies designed to evaluate diagnostic tests. When assessing the ability of a diagnostic test to screen for disease, the parameters sensitivity, specificity, and predictive values are of interest. Study sample size requirements can be calculated based on a clinically acceptable degree of precision. the hypothesized values of sensitivity and specificity, and the estimated prevalence of disease in the target population. The simple methods and tables in this paper guide the researcher when deciding how many subjects to sample in a study designed to estimate both the sensitivity and the specificity of a diagnostic test, given a specified precision and estimated disease prevalence.
A data frame containing the calculated sample sizes and input parameters:
Desired width of the confidence interval
Sensitivity of the diagnostic test
Specificity of the diagnostic test
Prevalence of the disease
Sample size for sensitivity
Sample size for specificity
Total sample size needed (maximum of ss_sensitivity and ss_specificity)
Confidence interval level
Buderer, N. M. F. (1996). Statistical methodology: I. Incorporating the prevalence of disease into the sample size calculation for sensitivity and specificity. Academic Emergency Medicine, 3(9), 895-900.
SampleSizeDiagnostics(sn = 0.9, sp = 0.85, p = 0.2, w = 0.1, CI = 0.95) SampleSizeDiagnostics(sn = 0.9, sp = 0.85, p = 0.2, w = 0.1, CI = 0.9)
SampleSizeDiagnostics(sn = 0.9, sp = 0.85, p = 0.2, w = 0.1, CI = 0.95) SampleSizeDiagnostics(sn = 0.9, sp = 0.85, p = 0.2, w = 0.1, CI = 0.9)