test.rocs: Testing for significant difference between two ROCS

Description Usage Arguments Value Author(s) References Examples

View source: R/test.rocs.R

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

1
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

1
2
3
4
5
6
7
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)

ROCS documentation built on May 2, 2019, 9:42 a.m.