p.to.Z: Convert p-values to Z-scores

View source: R/NCmisc.R

p.to.ZR Documentation

Convert p-values to Z-scores

Description

Simple conversion of two-tailed p-values to Z-scores. Written in a way that allows maximum precision for small p-values.

Usage

p.to.Z(p)

Arguments

p

p-values (between 0 and 1), numeric, scalar, vector or matrix, or other types coercible using as.numeric()

Value

Z scores with the same dimension as the input

Author(s)

Nicholas Cooper njcooper@gmx.co.uk

See Also

Z.to.p

Examples

p.to.Z(0.0001)
p.to.Z("5E-8")
p.to.Z(c(".05",".01",".005"))
p.to.Z(matrix(runif(16),nrow=4))

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.