README.md

AWFisher

Github repository for adaptively weighted fisher's method (AW-Fisher)

Install This Package from github

library(devtools)
install_github("Caleb-Huo/AWFisher") 

Citation

Full tutorial

http://htmlpreview.github.io/?https://github.com/Caleb-Huo/AWFisher/blob/master/vignettes/AWFisher.html

Short tutorial

library(AWFisher)

K <- 50 ## combining K studies
G <- 10000 ## simulate G genes

set.seed(15213)
p.values = matrix(runif(K*G), ncol=K) ## This should be a matrix (if not, try as.matrix) instead of a dataframe.
res = AWFisher_pvalue(p.values)

hist(res$pvalues, breaks=40)

ks<-ks.test(res$pvalues, "punif", min=0, max=1, alternative = "two.sided"); ## KS test to test if the AW p-values are uniformly distributed under the null
ks



Caleb-Huo/AWFisher documentation built on June 16, 2022, 5:48 p.m.