dskew: Probabilty density function of skewed symmetric model.
Description
Computes pdf of the skewed symmetric model.
Usage
dskew(x, spec1, arg1, spec2, arg2, log = FALSE)
Arguments
x
scalar or vector of values to compute the pdf.
spec1
a character string specifying the parent distribution \(g(x)\) (for example, "norm" if
the parent distribution corresponds to the normal).
arg1
list of arguments/parameters of the parent distribution \(g(x)\).
spec2
a character string specifying the parent distribution \(H(x)\) (for example, "logis" if
the parent distribution corresponds to the logistic).
arg2
list of arguments/parameters of the parent distribution \(H(x)\).
log
logical; if TRUE, log(pdf) are returned.
Value
An object of the same length as x, giving the pdf values computed at x.
Details
The pdf of skewed symmetric model has a general form of:
$$
f(x) = 2h(x)G(x), \quad -\infty < x < \infty
$$
where \(h(x)\) and \(G(x)\) are the pdf and cdf of parent distributions, respectively.
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.