Description Usage Arguments Value Author(s) Examples
View source: R/GSAfisher.multiple.R
Multiple method of GSAfisher function that computes the p-value for a joint test of association between a phenotype and multiple gene-sets of genetic variants (SNPs) by combining multiple marginal p-values data vectors using the Fisher method.
1 2 |
... |
Set of multiple marginal p-values data vectors or matrix. |
p.multiple |
Set of multiple Fisher method combined p-values for each data vector. |
Carlos Garcia Prieto
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #Generate 3 vectors with 1000 random values from an Uniform distribution U (0, 0.25).
data.vector1<-runif(1000, 0, 0.25)
data.vector2<-runif(1000, 0, 0.25)
data.vector3<-runif(1000, 0, 0.25)
#Set data class to "multiple".
class(data.vector1)<-"multiple"
#Apply the GSAfisher.multiple function to these data vectors.
GSAfisher(data.vector1, data.vector2, data.vector3)
#You can also try:
#Generate 5000 vectors with 1000 random values from an Uniform distribution U(0,0.25).
data.vectors<-sapply(1:5000, function (x) runif(1000, 0, 0.25))
#Set data class to "multiple".
class(data.vectors)<-"multiple"
#Apply the GSAfisher.multiple function to these data vectors.
GSAfisher(data.vectors)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.