Entering edit mode
8.2 years ago
elhamdallalbashi
▴
20
Is there a base R function that implements fisher's method for combining p-value?I'd rather not use a package.
Is there a base R function that implements fisher's method for combining p-value?I'd rather not use a package.
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
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
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.