z2p: Transform z-values to p-values

Description Usage Arguments Value Examples

View source: R/z2p.R

Description

Transforms the z-value(s) to the corresponding one- or two-sided p-value(s).

Usage

1
z2p(z, type="two.sided")

Arguments

z

a vector of z-values

type

Underlying type of p-value. Either "two.sided" or "one.sided". Defaults to "two.sided".

Value

A numeric vector of p-values

Examples

1
2
z2p(z=c(1,2,5))
z2p(z=c(1,2,5), type="one.sided")

pCalibrate documentation built on March 23, 2020, 3:01 a.m.