R/pIntrinsic.R

Defines functions pIntrinsic

Documented in pIntrinsic

pIntrinsic <- function(p = z2p(z, alternative = alternative),
                       z = NULL,
                       alternative = "two.sided", 
                       type = "Held"){
    if(type == "Held"){
        iz <- p2z(p, alternative = alternative)/sqrt(2)
        iP <- z2p(z = iz, alternative = alternative)
    }
    if(type == "Matthews"){
        iz <- p2z(p, alternative = alternative)/sqrt(2)*sqrt(sqrt(5) - 1)
        iP <- z2p(z = iz, alternative = alternative)
    }
    return(iP)
}

Try the ReplicationSuccess package in your browser

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

ReplicationSuccess documentation built on Dec. 2, 2020, 3 p.m.