R/z2p.R

Defines functions z2p

Documented in z2p

z2p <- function(z, type="two.sided"){
  if(type=="two.sided")
    p <- 2*pnorm(abs(z), lower.tail=FALSE)
  if(type=="one.sided")
    p <- pnorm(z, lower.tail=FALSE)
  return(p)
}

Try the pCalibrate package in your browser

Any scripts or data that you put into this service are public.

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