Learn R Programming

PAGWAS (version 2.0)

FM.chi.pvalue: Calculates the Fisher's method p-value for each tested pathway

Description

Calculates the Fisher's method p-value for a set of p-values. It returns both the p-value and the test statistic value of the Fisher's product method.

Usage

FM.chi.pvalue(x)

Arguments

x
A vector of p-values. These p-values can be either gene or SNP p-values of a tested pathway

Value

FMstatistic
Fisher's product method test statistic
FMpvalue
Fisher's method p-value, computed using the exact distribution of the Fisher's method test statistic which is a Chi^2 distribution with degrees of freedom twice the size of vector x

References

Evangelou M, Rendon A, Ouwehand WH, Wernisch L, Dudbridge F (2012) Comparison of Methods for Competitive Tests of Pathway Analysis. PLoS ONE 7(7): e41018. doi:10.1371/journal.pone.0041018

See Also

pathways, snps.to.pathways

Examples

Run this code
FM.chi.pvalue(x=c(0.05,0.1))

Run the code above in your browser using DataLab