test.rocs: Testing for significant difference between two ROCS
Description
The null hypothesis being tested is that the two ROCS are generated from populations with equal class-separating power. This function uses a bootstrap-based test.
Usage
test.rocs(x0, x1, z0, z1, B = 1000, do.plot = TRUE)
Value
The p-value of the test is returned.
Arguments
x0
Vector; the raw data of the true-negative class in study 1.
x1
Vector; the raw data of the true-positive class in study 1.
z0
Vector; the raw data of the true-negative class in study 2.
z1
Vector; the raw data of the true-positive class in study 2.
B
The number of bootstrap samples to be used in order to estimate the spread of the distribution under the null hypothesis.
do.plot
Whether to plot the spread based on bootstrap samples.
Author
Tianwei Yu. Email: tianwei.yu@emory.edu.
References
Yu T (2012) ROCS: Receiver Operating Characteristic Surface for Class-Skewed High-Throughput Data. PLoS ONE 7(7): e40598.