Learn R Programming

metap (version 1.0)

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 \(p\)-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\) should be such that \(0\le{}p\le{}1\) and a warning is given if this is not true. An error is given if possibly as a result of removing them fewer than two valid \(p\) 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 schweder on the valid \(p\)-values

References

becker94metap

Examples

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

Run the code above in your browser using DataLab