invt: Combine p values using the inverse t method

View source: R/invt.R

invtR Documentation

Combine p values using the inverse t method

Description

Combine p values using the inverse t method\loadmathjax

Usage

invt(p, k, data = NULL, subset = NULL, na.action = na.fail,
   log.p = FALSE)
## S3 method for class 'invt'
print(x, ...)

Arguments

p \sigvec
k

A vector of degrees of freedom to use, see details

data

Optional data frame containing variables

subset

Optional vector of logicals to specify a subset of the \mjseqnp-values

na.action

A function indicating what should happen when data contains NAs

log.p \logp
x

An object of class ‘invt

...

Other arguments to be passed through

Details

Defined as \mjdeqn\frac\sum_i=1^n t_k_i(p_i) \sqrt\sum_i=1^n \frack_ik_i - 2 > z(\alpha) \sum t (p) / \sqrt\sum k / (k - 2) > z(\alpha)

If k is a single value it is used for all the p of which there are n. If any value of \mjseqnk_i\le2 then the corresponding \mjseqnp_i is not included.

\ltle

two

\plotmethod

Value

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

z

Value of z

p

Associated p-value

validp

The input vector with the illegal values removed

Author(s)

Michael Dewey

References

\insertRef

becker94metap

See Also

See also plotp

Examples

data(dat.metap)
beckerp <- dat.metap$beckerp
invt(beckerp, 50)
all.equal(exp(invt(beckerp, 50, log.p = TRUE)$p), invt(beckerp, 50)$p)

metap documentation built on Sept. 11, 2024, 6:53 p.m.