R/rfts.R

Defines functions rfts

Documented in rfts

rfts <-
function(n, sigma=1, lambda=1, dist="norm")
{
n<-round(n)
if(n<=0) stop("n must be positive")
if(!any(dist == c("norm", "logis", "cauchy", "laplace"))) 
            stop("distribution is not recognized")
if(sigma<=0) stop("sigma must be positive")
qfts(runif(n), sigma=sigma, lambda=lambda, dist=dist)
}

Try the tpn package in your browser

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

tpn documentation built on Sept. 28, 2023, 1:06 a.m.