Last data update: 2014.03.03

R: Quantile function of folded model.
qfoldedR 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

S.A. Abu Bakar, S. Nadarajah, Z.A. ABSL Kamarul Adzhar, I. Mohamed. gendist: An R package for generated probability distribution models, submitted.
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) )

Results