meanp function

Combine p values by the mean p method

Combine p values by the mean p method

Combine \mjseqn p values by the mean p method\loadmathjax

meanp(p) ## S3 method for class 'meanp' print(x, ...)

Arguments

  • p: A vector of significance values
  • x: An object of class ‘meanp’
  • ...: Other arguments to be passed through

Details

Defined as \mjdeqn z = (0.5 - \bar p) \sqrt 12kz = (0.5 - mean(p)) * sqrt(12k)

which is a standard normal and due to \insertCite edgington72b;textualmetap

\insertNoCite becker94metap\insertNoCite rosenthal78metap

The values of \mjseqn p_i should be such that \mjseqn 0\le p_i\le 1 and a warning is given if that is not true. A warning is given if, possibly as a result of removing illegal values, fewer than four values remain and the return values are set to NA.

The plot method for class ‘metap’ calls plotp on the valid pp-values.

Returns

An object of class ‘meanp’ and ‘metap’ , a list with entries - z: Value of \mjseqn z

  • p: Associated \mjseqn p-value

  • validp: The input vector with illegal values removed

References

\insertAllCited

Author(s)

Michael Dewey

See Also

See also plotp

Examples

data(dat.metap) rosenthal <- dat.metap$rosenthal meanp(rosenthal$p) # 2.17, p = 0.015 one tailed
  • Maintainer: Michael Dewey
  • License: GPL-2
  • Last published: 2025-03-15

Useful links