R/llr.fn.R

llr.fn <-
function(distribution, h0, h1) {
    
    output <- c(C.fn(distribution, h1) - C.fn(distribution, h0),
                (D.fn(distribution, h1) - D.fn(distribution, h0)) * -1)
    
    attr(output, "names") <- c("k","n")
    
    output
}

Try the SPRT package in your browser

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

SPRT documentation built on May 2, 2019, 6:35 a.m.