R/qCBXBio.R

Defines functions qCBXBio

Documented in qCBXBio

#' @export
qCBXBio<-function(p, a, m, 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-(1/lambda*(1-((p[p >= 0 & p <= 1]*(1-(1-lambda)^(m))+(1-lambda)^(m))^(1/m)))))

	qf[p >= 0 & p <= 1] <- (-1*log(1-(t)^(1/a)))^(0.5)
    return(qf)
	}

Try the ComRiskModel package in your browser

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

ComRiskModel documentation built on May 31, 2023, 8:17 p.m.