read.tab.paired | R Documentation |
Reads in objects of class tab.paired using cell frequencies.
read.tab.paired(d.a, d.b, d.c, d.d, nd.a, nd.b, nd.c, nd.d, testnames, ...)
d.a |
The number of diseased subjects with a positive test 1 and a positive test 2. |
d.b |
The number of diseased subjects with a negative test 1 and a positive test 2. |
d.c |
The number of diseased subjects with a positive test 1 and a negative test 2. |
d.d |
The number of diseased subjects with a negative test 1 and a negative test 2. |
nd.a |
The number of non-diseased subjects with a positive test 1 and a positive test 2. |
nd.b |
The number of non-diseased subjects with a negative test 1 and a positive test 2. |
nd.c |
The number of non-diseased subjects with a positive test 1 and a negative test 2. |
nd.d |
The number of non-diseased subjects with a negative test 1 and a negative test 2. |
testnames |
An optional vector specifying the names of diagnostic test 1 and diagnostic test 2, e.g. |
... |
Additional arguments (usually not required). |
Returns a list of class tab.paired
containing:
diseased |
A contingency table (matrix) of test results among diseased subjects.
| ||||||||||||||||
non.diseased |
A contingency table (matrix) of test results among non-diseased subjects.
| ||||||||||||||||
testnames |
The names of the diagnostic tests. |
Objects of class tab.paired
are essential arguments for various functions in the
DTComPair
-package.
tab.paired
,
print.tab.paired
,
acc.paired
,
generate.paired
.
read.t2 <- read.tab.paired(321, 51, 730, 272,
120, 8, 74, 109,
testnames=c("Test A", "Test B"))
class(read.t2)
read.t2
acc.paired(read.t2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.