R/eBellB12.R

Defines functions eBellB12

Documented in eBellB12

#' @export
#' @import stats
eBellB12<-function(p, a, b, k, lambda)
{
    fn = function(x) {
        vBellB12(x, a, b, k, 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.