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?

krlmlr
  • 779

3 Answers3

13

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

krlmlr
  • 779
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
  • 779
  • 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.