| pskew {gendist} | R Documentation |
Cumulative distribution function of skewed symmetric model.
Description
Computes cdf of the skewed symmetric model.
Usage
pskew(q, spec1, arg1, spec2, arg2, lower.tail = TRUE, log.p = FALSE)
Arguments
q |
scale or vector of values to compute the cdf. |
spec1 |
a character string specifying the parent distribution |
arg1 |
list of arguments/parameters of the parent distribution |
spec2 |
a character string specifying the parent distribution |
arg2 |
list of arguments/parameters of the parent distribution |
lower.tail |
logical; if |
log.p |
logical; if |
Details
The cdf of skewed symmetric model has a general form of:
F(x) = \int_{-\infty}^{x} 2 h(y) G(y) dy, \quad -\infty < x < \infty
where h(x) and G(x) are the pdf and cdf of parent distributions, respectively.
Value
An object of the same length as q, giving the cdf values computed at q.
Author(s)
Shaiful Anuar Abu Bakar
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).
Azzalini, A. (1985). A class of distributions which includes the normal ones. Scandinavian journal of statistics, 171-178.
Examples
x=runif(10, min=0, max=1)
y=pskew(x, spec1="norm", arg1=list(mean=0,sd=1), spec2="logis",
arg2=list(location=0,scale=2) )