R/rllogis.R

Defines functions rllogis

Documented in rllogis

##
##  PURPOSE:     Random number generation from the log-logistic distribution
##  PROGRAMMER:  Arnost Komarek
##  CREATED:     20/06/2008
##
## ========================================================
rllogis <- function(n, shape, scale=1)
{
  if (n<=0) stop("n must be positive")
  n <- n[1]
  u <- runif(n)
  VAL <- qllogis(u, shape=shape, scale=scale, lower.tail=TRUE, log.p=FALSE)
  return(VAL)
}  

Try the icensBKL package in your browser

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

icensBKL documentation built on Sept. 19, 2022, 5:06 p.m.