| pfolded {gendist} | R Documentation |
Cumulative distribution function of folded model.
Description
Computes cdf of the folded model.
Usage
pfolded(q, spec, arg, lower.tail = TRUE, log.p = FALSE)
Arguments
q |
scale or vector of values to compute the cdf. |
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. |
lower.tail |
logical; if |
log.p |
logical; if |
Details
The cdf of folded model has a general form of:
F(x) = G(x) - G(-x) \quad x>0
where G(x) is the cdf of parent distribution.
Value
An object of the same length as q, giving the cdf values computed at q.
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=pfolded(x, spec="norm", arg=list(mean=1,sd=2) )