R/pegamma.R

pegamma <-
function (e, shape, rate = 1, scale = 1/rate) 
{
    if (scale != 1/rate) 
        rate = 1/scale
    u = gamma(1 + shape)/gamma(shape)/rate * pgamma(e, 1 + shape, 
        rate) - e * pgamma(e, shape, rate)
    asy = u/(2 * u + e - shape/rate)
    return(asy)
}

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.