dataframeR | R Documentation |
Produces a data frame which can be used by the compareR function using values commonly found in published literature. Useful for reviews and meta-analyses.
dataframeR(s11, s10, s01, s00, r11, r10, r01, r00)
s11 |
Number of cases where Test 1 is positive, Test 2 is positive and gold standard is positive. |
s10 |
Number of cases where Test 1 is positive, Test 2 is negative and gold standard is positive. |
s01 |
Number of cases where Test 1 is negative, Test 2 is positive and gold standard is positive. |
s00 |
Number of cases where Test 1 is negative, Test 2 is negative and gold standard is positive. |
r11 |
Number of cases where Test 1 is positive, Test 2 is positive and gold standard is negative. |
r10 |
Number of cases where Test 1 is positive, Test 2 is negative and gold standard is negative. |
r01 |
Number of cases where Test 1 is negative, Test 2 is positive and gold standard is negative. |
r00 |
Number of cases where Test 1 is negative, Test 2 is negative and gold standard is negative. |
Understanding the parameter names: s & r represent positive and negative results for the gold standard test, respectively. The first digit represents a positive (1) or negative (0) result for Test 1. The second digit represents a positive (1) or negative (0) result for Test 2.
A data frame populated with zeros and ones indicating positive or negative test results which can be passed to the compareR function.
# build data frame using numbers
dataframeR(3, 3, 3, 3, 3, 3, 3, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.