empiricalBrownsMethod: The Empirical Browns Method For Combining P-values

Description Usage Arguments Value Examples

View source: R/ebm.R

Description

Combining P-values from multiple statistical tests is common in bioinformatics. However, this procedure is non-trivial for dependent P-values. This package provides an empirical adaptation of Brown<e2><80><99>s Method (an extension of Fisher<e2><80><99>s Method) for combining dependent P-values which is appropriate for highly correlated data sets, like those found in high-throughput biological experiments.

Usage

1
  empiricalBrownsMethod(data_matrix, p_values, extra_info)

Arguments

data_matrix

An m x n numeric matrix with m variables in rows and n samples in columns.

p_values

A numeric vector of p-values with length m.

extra_info

boolean, TRUE additionally returns the p-value from Fisher's method, the scale factor c, and the new degrees of freedom from Brown's Method

Value

The output is a list containing list(P_Brown=p_brown, P_Fisher=p_fisher, Scale_Factor_C=c, DF_Brown=df_brown)

P_test

p-value for Brown's method

P_Fisher

p-value for Fisher's method

Scale_Factor

the scale factor c

DF

the degrees of freedom used in Brown's method

Examples

1
2
3
4
5
6
## restore the saved values to the current environment
  data(ebmTestData)
  glypGenes <- pathways$gene[pathways$pathway == "GLYPICAN 3 NETWORK"]
  glypPvals <- allPvals$pvalue.with.CHD4[match(glypGenes, allPvals$gene)];
  glypDat   <- dat[match(glypGenes, dat$V1), 2:ncol(dat)];
  empiricalBrownsMethod(data_matrix=glypDat, p_values=glypPvals, extra_info=TRUE);

Example output

$P_test
[1] 4.821679e-07

$P_Fisher
[1] 1.438732e-08

$Scale_Factor_C
[1] 1.297693

$DF
[1] 10.78838

EmpiricalBrownsMethod documentation built on Nov. 8, 2020, 8:16 p.m.