aucTest {mcradds} | R Documentation |
AUC Test for Paired Two-sample Measurements
Description
This function compares two AUC of paired two-sample diagnostic assays by standardized difference method, which has a little difference in SE calculation with unpaired design. In order to compare the two assays, this function provides three assessments including 'difference', 'non-inferiority' and 'superiority'. This method of comparing is referred from Liu(2006)'s article that can be found in reference section below.
Usage
aucTest(
x,
y,
response,
h0 = 0,
conf.level = 0.95,
method = c("difference", "non-inferiority", "superiority"),
...
)
Arguments
x |
( |
y |
( |
response |
( |
h0 |
( |
conf.level |
( |
method |
( |
... |
other arguments to be passed to |
Details
If the samples are not considered independent, such as in a paired design,
the SE can not be computed by the method of Delong provided in pROC
package.
Here the aucTest
function use the standardized difference approach from
Liu(2006) publication to compute the SE and corresponding hypothesis test
statistic for a paired design study.
-
difference
is to test the difference between two diagnostic tests, the default h0 is zero. -
non-inferiority
is to test the new diagnostic tests is no worse than the standard diagnostic test in a specific margin, but the same time maybe it's safer, easier to administer or cost less. -
superiority
is to test the test the new diagnostic tests is better than the standard diagnostic test in a specific margin(default is zero), having better efficacy.
Value
A RefInt
object contains relevant results in comparing the paired
ROC of two-sample assays.
Note
The test of significance for the difference is not equal to the result of EP24A2 Appendix D. Table D2. Because the Table D2 uses the method of Hanley & McNeil (1982), whereas this function here uses the method of DeLong et al. (1988), which results in the difference of SE. Thus the corresponding Z statistic and P value will be not equal as well.
References
Jen-Pei Liu (2006) "Tests of equivalence and non-inferiority for diagnostic accuracy based on the paired areas under ROC curves". Statist. Med. , 25:1219–1238. DOI: 10.1002/sim.2358.
Examples
data("ldlroc")
# H0 : Difference between areas = 0:
aucTest(x = ldlroc$LDL, y = ldlroc$OxLDL, response = ldlroc$Diagnosis)
# H0 : Superiority margin <= 0.1:
aucTest(
x = ldlroc$LDL, y = ldlroc$OxLDL, response = ldlroc$Diagnosis,
method = "superiority", h0 = 0.1
)
# H0 : Non-inferiority margin <= -0.1:
aucTest(
x = ldlroc$LDL, y = ldlroc$OxLDL, response = ldlroc$Diagnosis,
method = "non-inferiority", h0 = -0.1
)