This is a test version of Biostars. For the public version, visit https://www.biostars.org.
R function for combining p-values

Is there a base R function that implements fisher's method for combining p-value?I'd rather not use a package.

r

May I ask why you don't want to use packages? Many many functions will only be available through very specific packages, as such best fitting your need.

That's a trivial function to write yourself.

1 answer

You can use the metap package. But then if you must, then this should work

pchisq((sum(log(p))*-2), df=length(p)*2, lower.tail=F)

Given p is the list of p-values

Log in to answer this question.