R/rsld.R

Defines functions rsl

Documented in rsl

rsl <- function(n,parameters){
  # Check the parameter values are OK
  if(!sl.check.pars(parameters)) {
    stop(paste("The parameter values", paste(parameters,collapse=" "),"\ndo not produce a proper skew logistic distrbution.\nNote that beta must be positive and delta needs to be in the range [0,1]\n"))
  }
  # Produce the uniform data
  p <- runif(n)
  # convert to gl
  res <- qsl(p,parameters=parameters)
  res
}

Try the sld package in your browser

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

sld documentation built on June 28, 2022, 5:05 p.m.