powered by
Reads in objects of class tab.1test using cell frequencies.
tab.1test using cell frequencies.
read.tab.1test(a, b, c, d, testname, ...)
Returns a list of class tab.1test containing:
tab.1test
A contingency table (matrix) of test results.
a
b
c
d
The name of the diagnostic test.
The number of diseased subjects with a positive test.
The number of non-diseased subjects with a positive test.
The number of diseased subjects with a negative test.
The number of non-diseased subjects with a negative test.
An optional vector specifying the name of the diagnostic test, e.g. c("Test A"). If not supplied, the corresponding variable name is used as testname.
c("Test A")
Additional arguments (usually not required).
tab.1test, print.tab.1test, acc.1test.
print.tab.1test
acc.1test
read.t1 <- read.tab.1test(321, 51, 730, 272, testname="Test1") class(read.t1) read.t1 acc.1test(read.t1)
Run the code above in your browser using DataLab