Learn R Programming

metap (version 1.4)

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 - p) 12kz = (0.5 - mean(p)) * sqrt(12k) which is a standard normal and due to edgington72b;textualmetap becker94metaprosenthal78metap

The values of p_i should be such that 0 p_i 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 \(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