sesp.mcnemar | R Documentation |
Performs a McNemar Test for comparison of sensitivities and specificities of two binary diagnostic tests in a paired study design.
sesp.mcnemar(tab)
tab |
An object of class |
The test is performed as described by McNemar (1947).
A list containing:
sensitivity |
A list containing
|
specificity |
A list containing
|
method |
The name of the method used to compare sensitivity and specificity, here “ |
McNemar, Q. (1947). Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2):153-7.
sesp.exactbinom
and tab.paired
.
data(Paired1) # Hypothetical study data
ftable(Paired1)
paired.layout <- tab.paired(d=d, y1=y1, y2=y2, data=Paired1)
paired.layout
mcnem.results <- sesp.mcnemar(paired.layout)
str(mcnem.results)
mcnem.results
mcnem.results$sensitivity["p.value"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.