qfolded {gendist}R Documentation

Quantile function of folded model.

Description

Computes cdf of the folded model.

Usage

qfolded(p, spec, arg, interval = c(0, 100), lower.tail = TRUE, log.p = FALSE)

Arguments

p

scalar or vector of probabilities to compute the qf.

spec

a character string specifying the parent distribution (for example, "norm" if the parent distribution correspond to the normal).

arg

list of arguments/parameters of the parent distribution.

interval

a vector of interval end-points for p to search for the function root.

lower.tail

logical; if TRUE, probabilities are p, otherwise 1-p.

log.p

logical; if TRUE, probabilities p are returned as log(p).

Value

An object of the same length as p, giving the qf values computed at p.

References

Abu Bakar, S. A., Nadarajah, S., Adzhar, Z. A. A. K., & Mohamed, I. (2016). gendist: An R package for generated probability distribution models. PloS one, 11(6).
Brazauskas, V., & Kleefeld, A. (2011). Folded and log-folded-t distributions as models for insurance loss data. Scandinavian Actuarial Journal, 2011(1), 59-74.

Examples

x=runif(10, min=0, max=1)
y=qfolded(x, spec="norm", arg=list(mean=1,sd=2), interval=c(0,100) )

[Package gendist version 2.0 Index]