R/qMO.R

Defines functions qMO

Documented in qMO

qMO <-
function(p, theta=1, lower.tail = TRUE, log.p = FALSE)
{
if(theta<0) stop("theta must be less than 0")
Qy<-log(p)-log(p+theta*(1-p))
Qy <- ifelse(p <= 0, -Inf, Qy)
Qy <- ifelse(p >= 1, Inf, Qy)
if(log.p == FALSE) Qy <- exp(Qy)
if(lower.tail==FALSE) Qy<-1-Qy
Qy
}

Try the gentransmuted package in your browser

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

gentransmuted documentation built on Aug. 8, 2025, 7:21 p.m.