R/qBellL.R

Defines functions qBellL

Documented in qBellL

qBellL<-function(p, b, q, lambda,log.p = FALSE, lower.tail = TRUE){
	if (log.p == TRUE)
        p <- exp(p)
    if (lower.tail == FALSE)
        p <- 1 - p
	qf <- rep(NaN, length(p))
	t=(-1/lambda*log(1-((log(1-(p[p >= 0 & p <= 1])*(1-(exp(-exp(lambda)+1)))))/(-exp(lambda)))))

	qf[p >= 0 & p <= 1] <- b*(((1-t)^(-1/q))-1)
    return(qf)
	}

Try the BGFD package in your browser

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

BGFD documentation built on April 7, 2023, 9:07 a.m.