Learn R Programming

pCalibrate (version 0.2-1)

z2p: Transform z-values to p-values

Description

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

Usage

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

Run this code
# NOT RUN {
z2p(z=c(1,2,5))
z2p(z=c(1,2,5), type="one.sided")
# }

Run the code above in your browser using DataLab