R/pemq.R

pemq <-
function (z, ncp = 0, s = 1) 
{
    if (s <= 0) 
        stop("scaling parameter must be strictly >0.")
    x = (z - ncp)/s
    0.5 + 0.5 * sign(x) * sqrt(1 - 2/(2 + x^2))
}

Try the expectreg package in your browser

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

expectreg documentation built on March 18, 2022, 5:57 p.m.