R/dMO2.R

Defines functions dMO2

Documented in dMO2

dMO2 <-
function(x, theta=1, log=FALSE)
{
if(theta<0) stop("theta must be less than 0")
log.f<-log1p(-theta)-2*log1p(theta*x-theta)
if(log == FALSE) fy <- exp(log.f)
else fy <- log.f
fy <- ifelse(x <= 0 | x>=1, 0, 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.