test.rocs {ROCS} | R Documentation |
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)
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. |
Value
The p-value of the test is returned.
Author(s)
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.
Examples
x0<-rnorm(1000, mean=0, sd=1.5)
x1<-rnorm(100, mean=3, sd=1)
z0<-rnorm(800, mean=0, sd=1.5)
z1<-rnorm(80, mean=3.25, sd=1)
test.rocs(x0, x1, z0,z1, B=1000)