fcauc.x: Generating ROC plot with shading based on FDR

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/fcauc.x.R

Description

The function plots the ROC curve. It shades the area corresponding to acceptable FDR level. The FDR-controlled area under the curve (FCAUC) is calculated for the shaded area.

Usage

1
fcauc.x(x0, x1, FDR.cut = 0.2)

Arguments

x0

Vector; the raw data of the null class.

x1

Vector; the raw data of the non-null class.

FDR.cut

The FDR level at which to shade the AUC and calculate the FCAUC.

Value

The FCAUC value 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.

See Also

fcauc.fptp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#perfect separation
x0<-runif(1000)
x1<-runif(100)+2

fcauc.x(x0, x1)

#partial separation
x0<-rnorm(1000, mean=0, sd=1.5)
x1<-rnorm(100, mean=3, sd=1)

fcauc.x(x0, x1)

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