p2z: Transform p-values to z-scores

Description Usage Arguments Value Examples

Description

Transform p-values to z-scores

Usage

1
p2z(p.value, e.sign = NULL, tol = 1e-15)

Arguments

p.value

a vector of p-values

e.sign

a vector of signs of the effects, taken on value -1 and 1

tol

a numeric value at which the p-value (both ends) will truncate

Value

a vector of z-values

Examples

1
2
3
pv <- runif(5)
p2z(pv)
p2z(0.5) ## should be 0

abichat/zazou documentation built on Sept. 8, 2021, 6:53 a.m.