enrichment_factor: Function to calculate the enrichment factor (EF)

Description Usage Arguments Value Author(s) Examples

View source: R/enrichment_factor.R

Description

Function to calculate the enrichment factor (EF)

Usage

1
	enrichment_factor(x, y, top=0.05, decreasing=TRUE)

Arguments

x

a vector for scores

y

a vector for labels

top

thresholed ratio of top-ranked compound

decreasing

TRUE if the compounds are ranked by decreasing score

Value

EF, in the range from 0 to +Inf.

Author(s)

Hiroaki YABUUCHI

Examples

1
2
3
4
5
6
x <- rnorm(1000)  # random scores for 1000 compounds
y <- c(rep(1,50), rep(0,950))     # activity labels for "x"
enrichment_factor(x, y, top=0.1)

data(dud_egfr)
enrichment_factor(dud_egfr$energy, dud_egfr$label, decreasing=FALSE)

enrichvs documentation built on May 2, 2019, 10:22 a.m.