R function for combining p-values
1
1
Entering edit mode
8.2 years ago

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

R • 7.0k views
ADD COMMENT
1
Entering edit mode

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.

ADD REPLY
1
Entering edit mode

That's a trivial function to write yourself.

ADD REPLY
6
Entering edit mode
8.2 years ago
Sam ★ 4.8k

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

ADD COMMENT

Login before adding your answer.

Traffic: 1588 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6