R/thresholdIntrinsic.R

Defines functions thresholdIntrinsic

Documented in thresholdIntrinsic

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

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.