13

Is there an R package (or even a base R function) that implements Fisher's or Stouffer's method for combining p-values? Coding this should be almost trivial, but I'd rather use (and cite) a package.

Example code in this question: Fisher's method for combing p-values - what about the lower tail?

kjetil b halvorsen
  • 63,378
  • 26
  • 142
  • 467
krlmlr
  • 749
  • 1
  • 8
  • 35

3 Answers3

12

The metap package by Michael Dewey implements many methods for combining p-values:

krlmlr
  • 749
  • 1
  • 8
  • 35
5

There's also the combine.test function in the survcomp package (on Bioconductor). Implements Fisher's and Stouffer's method, as well as the logit method.

krlmlr
  • 749
  • 1
  • 8
  • 35
  • `survcomp` also works in the edge case of a single pvalue, handles missing values more consistently with base r and encourages contributions by providing an official repo. – jan-glx Jan 16 '19 at 10:17
2

There is poolr package by Ozan Cinar and Wolfgang Viechtbauer. It includes functions for both Fisher and Stouffer methods.