[R] combining P values from different tests

Jonathan Baron baron at psych.upenn.edu
Thu Jul 8 20:45:03 CEST 2010

On 07/08/10 19:25, Knut Krueger wrote:
> Hi to all,
> is there any function available to combine those p values;
> Kind Regards Knut

Here's a couple of functions I've used for one thing that you might
mean.  The idea is that you have two p-values for different tests of
the same hypothesis, and you want to get an overall p-value for the
hypothesis.  The first method, for combining two p-values, was
invented by Fisher a very long time ago.  The second method I do not
remember a thing about, but I found it somewhere.  You need to look
these up before trusting them.

# combine and output one-tailed p's.  Enter 2-tailed p's.
combine <- function(x,y)

# Stouffer's method for vector x, gives 2-tailed result
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron

More information about the R-help mailing list