pskew: Cumulative distribution function of skewed symmetric model.

Description Usage Arguments Details Value Author(s) References Examples

Description

Computes cdf of the skewed symmetric model.

Usage

1
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 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).

lower.tail

logical; if TRUE, cdf are returned, otherwise 1-cdf.

log.p

logical; if TRUE, probabilities returned are given as log(cdf).

Details

The cdf of skewed symmetric model has a general form of:

F(x) = \int_{-∞}^{x} 2 h(y) G(y) dy, \quad -∞ < x < ∞

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

S.A. Abu Bakar, S. Nadarajah, Z.A. ABSL Kamarul Adzhar, I. Mohamed. gendist: An R package for generated probability distribution models, submitted.
Azzalini, A. (1985). A class of distributions which includes the normal ones. Scandinavian journal of statistics, 171-178.

Examples

1
2
3
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) )


Search within the gendist package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.