R/eBellEW.R

Defines functions eBellEW

Documented in eBellEW

#' @export
#' @import stats
eBellEW<-function(p, alpha, beta, theta,lambda)
{
    fn = function(x) {
        vBellEW(x, alpha, beta, theta, 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.