Learn R Programming

metap (version 1.1)

logitp: Combine p values using logit method

Description

Combine \(p\) values using logit method

Usage

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

Arguments

p

A vector of significance values

x

An object of class ‘logitp

...

Other arguments to be passed through

Value

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

t

Value of Student's \(t\)

df

Associated degrees of freedom

p

Associated \(p\)-value

validp

The input vector with illegal values removed

Details

Defined as $$t = - \frac{\sum_{i=1}^k \log\frac{p_i}{1 - p_i}}{C}$$ where $$C = \sqrt\frac{k \pi^2 (5 k + 2)}{3(5 k + 4)}$$ and \(k\) is the number of studies.

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

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(teachexpect)
logitp(teachexpect) # t = 2.763, df = 99, p = 0.0034, from Becker
data(beckerp)
logitp(beckerp) # t = 1.62, df = 29, NS, from Becker
data(validity)
logitp(validity) # t = 9.521, df = 104, p = 3.89 * 10^{-16}
# }

Run the code above in your browser using DataLab