R/eBellW.R

Defines functions eBellW

Documented in eBellW

#' @export
#' @import stats
eBellW<-function(p, alpha , beta, lambda)
{
    fn = function(x) {
        vBellW(x, alpha , beta, lambda)
    }
    ES = p
    for (i in 1:length(p)) {
        ES[i] = (1/p[i]) * integrate(fn, lower = 0, upper = p[i],
            stop.on.error = FALSE)$value
    }
    return(ES)
}

Try the ActuarialM package in your browser

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

ActuarialM documentation built on May 31, 2023, 9:03 p.m.