Learn R Programming

metap (version 1.1)

meanz: Combine p values using mean z method

Description

Combines p values using the mean of z method

Usage

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

Arguments

p

A vector of significance values

x

An object of class ‘meanz

...

Other arguments to be passed through

Value

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

z

The value of the mean \(z\) statistic

p

The associated \(p\) value

validp

The input vector with illegal values removed

Details

Let $$\bar{z} = \sum_{i=1}^k \frac{z(p_i)}{k}$$ and $$s_{\bar{z}} = \frac{s_z}{\sqrt{k}}$$ Defined as $$% \frac{\bar{z}}{s_{\bar{z}}} > t_{k-1}(\alpha) $$

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 two values remain. As can be seen if all the \(p_i\) are equal or close to equal this gives a \(t=\pm\infty\) leading to a returned value of 0 or 1.

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

References

becker94metap

See Also

See also plotp

Examples

Run this code
# NOT RUN {
data(beckerp)
meanz(beckerp)
# }

Run the code above in your browser using DataLab