tlambda: Tukey lambda distribption

tlambdaR Documentation

Tukey lambda distribption

Description

Defines quantile function (ICDF), and quantile density function as well as probability function (CDF) for Tukey lambda distribution

Usage

qtlambda(p, lambda)

ftlambda(p, lambda)

dqtlambda(p, lambda, log = FALSE)

ptlambda(q, ..., lower = 0, upper = 1, tol = 1e-06, silent = TRUE, trace = 0)

rtlambda(n, lambda)

Arguments

p

vector of probabilities

lambda

parameter beta of Tukey lambda distribution (scale and shape).

log

logical; if TRUE, log density is returnes. Default is FALSE

q

vector of quantiles

...

used by method

lower, upper

the stats::uniroot lower and upper end points of the interval to be searched. Defaults are 0 and 1, respectively

tol

the stats::uniroot desired accuracy (convergence tolerance). Default value 1e-06

silent

the base::try argument. Default is TRUE

trace

integer number passed to stats::uniroot; if positive, tracing information is produced. Higher values giving more details.

n

numeric; number of samples to draw from Tukey Lambda distribution

Value

vector

Examples

qtlambda(0.1, -0.5)
p <- runif(1e4)
x <- qtlambda(p, -0.5)+qtlambda(p, 0.5)
hist(x,30)

dmi3kno/qpd documentation built on Sept. 29, 2024, 6:39 p.m.