fisher.sum(p, zero.sub=0.00001, na.rm=FALSE)
log(0)
results in Inf
we replace p-values of 0 by
default with a small float. If you want to keep them as 0 you have
to provide 0 as a parameter in zero.sub
.Note that only p-values between 0 and 1 are allowed to be passed to this method.
fisher.method
fisher.sum(c(0.2,0.05,0.05))
fisher.sum(c(0.2,0.05,0.05, NA), na.rm=TRUE)
Run the code above in your browser using DataLab