pauc_out: pauc_out.

Description Usage Arguments Value Examples

View source: R/0-multtest.R

Description

This function is to calculate false discovery proportion, partial area under ROC curve, number of true positive when we know the true status of each gene

Usage

1
pauc_out(q, lab)

Arguments

q

a vector of p-values

lab

a vector of factor consistings of 0 or 1, indicating if the feater are true null or false null.

Value

a vector of S, V, R, FDR, pauc

Examples

1
2
3
4
5
6
7
8
set.seed(1)
EE <- 1000
DE <- 100
p1 <- runif(EE)
p2 <- rbeta(DE, shape1 = .5, shape2 = 1)
p <- c(p1, p2)
lab <- as.factor(as.character(c(rep(0, EE), rep(1, DE))))
pauc_out(p, lab)

ntyet/sfdr documentation built on Jan. 13, 2018, 6:50 a.m.