compute_power_and_fdr: Calculate power and FDR

Description Usage Arguments Value Examples

View source: R/rlib_roc_pr.R

Description

Given the set of true signals and the set of proposed signals, calculate power and false discovery rate

Usage

1
compute_power_and_fdr(discovered_genes, true_genes)

Arguments

discovered_genes

a set of proposed signals (their IDs as string)

true_genes

a set of true signals (their IDs as string)

Value

data.frame with power and fdr as columns along with nTP (number of true positives), nP (number of positives, i.e. proposed signals), and nT (number of true signals)

Examples

1
2
3
4
compute_power_and_fdr(
  discovered_genes = c('g1', 'g3', 'g4'),
  true_genes = c('g1', 'g2')
)

liangyy/silver-standard-performance documentation built on Dec. 5, 2019, 8:53 a.m.