Diagnostic superiority (single test) calculation
Source:R/diagnostic_existing_designs.R
calculate_diagnostic_superiority_single.RdDiagnostic superiority (single test) calculation
Arguments
- prob
Expected accuracy
- p0
Null hypothesis accuracy
- prevalence
Disease prevalence
- alpha
Type I error
- power
Statistical power
- method
Calculation method: "asymptotic" (Hajian-Tilaki 2014 Eq 6.8) or "exact" (A'Hern 2001 exact binomial)
- alternative
"one.sided"(the historical default of this package and the Akoglu 2022 Table 2 Eq 2 convention) or"two.sided"(the Hajian-Tilaki 2014 Eq 6.8 convention, which the paper uses throughout, p. 197).