Computes cdf of the folded model.
qfolded(p, spec, arg, interval = c(0, 100), lower.tail = TRUE, log.p = FALSE)
scalar or vector of probabilities to compute the qf.
a character string specifying the parent distribution (for example, "norm" if the parent distribution correspond to the normal).
list of arguments/parameters of the parent distribution.
a vector of interval end-points for p
to search for the function root.
logical; if TRUE
, probabilities are p
, otherwise 1-p
.
logical; if TRUE
, probabilities p
are returned as log(p
).
An object of the same length as p
, giving the qf values computed at p
.
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.
# NOT RUN {
x=runif(10, min=0, max=1)
y=qfolded(x, spec="norm", arg=list(mean=1,sd=2), interval=c(0,100) )
# }
Run the code above in your browser using DataLab