R/pEXP.R

Defines functions pEXP

Documented in pEXP

pEXP <-
function(q, alpha=1, lower.tail=TRUE, log.p=FALSE)
{
if(alpha<0) stop("alpha must be less than 0")
Fy<-alpha*log(q)
Fy <- ifelse(q <= 0, -Inf, Fy)
Fy <- ifelse(q >= 1, 0, Fy)
if(log.p == FALSE) Fy <- exp(Fy)
if(lower.tail==FALSE) Fy<-1-Fy
Fy
}

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.