Learn R Programming

metap (version 1.1)

meanp: Combine p values by the mean p method

Description

Combine \(p\) values by the mean p method

Usage

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

Arguments

p

A vector of significance values

x

An object of class ‘meanp

...

Other arguments to be passed through

Value

An object of class ‘meanp’ and ‘metap’, a list with entries

z

Value of \(z\)

p

Associated \(p\)-value

validp

The input vector with illegal values removed

Details

Defined as $$z = (0.5 - \bar{p}) \sqrt{12k}$$ which is a standard normal and due to edgington72b;textualmetap becker94metaprosenthal78metap

The values of \(p_i\) should be such that \(0\le p_i\le 1\) and a warning is given if that is not true. An error is given if, possibly as a result of removing illegal values, fewer than four values remain.

The plot method for class ‘metap’ calls plotp on the valid \(p\)-values.

References

See Also

See also plotp

Examples

Run this code
# NOT RUN {
data(rosenthal)
meanp(rosenthal$p) # 2.17, p = 0.015 one tailed
# }

Run the code above in your browser using DataLab