qskew: Quantile function of skewed symmetric model.

Description Usage Arguments Value Author(s) References Examples

View source: R/gendist.R

Description

Computes qf of the skewed symmetric model.

Usage

1
qskew(p, spec1, arg1, spec2, arg2, interval = c(1, 10), lower.tail = TRUE, log.p = FALSE)

Arguments

p

scalar or vector of probabilities to compute the qf.

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

interval

a vector of interval end-points for p to search for the function root.

lower.tail

logical; if TRUE, probabilities are p, otherwise 1-p.

log.p

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

Value

An object of the same length as p, giving the qf values computed at p.

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

1
2
3
x=runif(10, min=0, max=1)
y=qskew(x, spec1="norm", arg1=list(mean=0,sd=0.1), spec2="logis", 
        arg2=list(location=0,scale=0.2))

gendist documentation built on May 2, 2019, 3:34 p.m.