R/varu.R

Defines functions varu

Documented in varu

varu <- function(process, method = c('saddlepoint', 'hypoexp'), ...) {
    stopifnot(is.riskproc(process))
    if (missing(method)) {
        if (is.hypoexp(process)) {
            method <- 'hypoexp'
        } else {
            method <- 'saddlepoint'
        }
    } else {
        method <- match.arg(method)
    }

    switch(method,
        saddlepoint = saddlepointVaru(process, ...),
        hypoexp     = hypoexpVaru(process, ...)
    )
}

Try the sdprisk package in your browser

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

sdprisk documentation built on May 1, 2019, 7:50 p.m.