R/demq.R

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

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.