sesp.exactbinom {DTComPair}R Documentation

Exact Binomial Test for Differences in Sensitivity and Specificity

Description

Performs an exact binomial test for differences in sensitivity and specificity of two binary diagnostic tests in a paired study design.

Usage

sesp.exactbinom(tab) 

Arguments

tab

An object of class tab.paired.

Details

The function performs a standard exact binomial test.

An exact binomial test is recommended when the number of patients with differing results for test 1 and test 2 (discordant pairs) is small, i.e. <20 (Zhou et al., 2011).

Value

A list containing:

sensitivity

A list containing test1 (sensitivity of test 1), test2 (specificity of test 2), diff (the difference in sensitivity, computed as test2 - test1) and the corresponding p.value.

specificity

A list containing test1 (specificity of test 1), test2 (specificity of test 2), diff (the difference in specificity, computed as test2 - test1) and the corresponding p.value.

method

The name of the method used to compare sensitivity and specificity, here “exactbinom”.

References

Zhou, X., Obuchowski, N., and McClish, D. (2011). Statistical Methods in Diagnostic Medicine. Wiley Series in Probability and Statistics. John Wiley & Sons, Hoboken, New Jersey, 2nd edition.

See Also

sesp.mcnemar and tab.paired.

Examples

data(Paired1) # Hypothetical study data
ftable(Paired1)
paired.layout <- tab.paired(d=d, y1=y1, y2=y2, data=Paired1)
paired.layout 
exact.results <- sesp.exactbinom(paired.layout)
str(exact.results)
exact.results
exact.results$sensitivity["p.value"]

[Package DTComPair version 1.0.3 Index]