qmixt: Quantile function of mixture model.

Description Usage Arguments Value References Examples

View source: R/gendist.R

Description

Computes qf of the mixture model.

Usage

1
2
qmixt(p, phi, spec1, arg1, spec2, arg2, interval = c(0, 100),
      lower.tail = TRUE, log.p = FALSE)

Arguments

p

scalar or vector of probabilities to compute the qf.

phi

the value of φ parameter, φ>0.

spec1

a character string specifying the first parent distribution (for example, "lnorm" if the parent distribution corresponds to the lognormal).

arg1

list of arguments/parameters of the first parent distribution.

spec2

a character string specifying the second parent distribution (for example, "exp" if the parent distribution corresponds to the exponential).

arg2

list of arguments/parameters of the second parent distribution.

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.

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).
Pearson, K. (1894). Contributions to the mathematical theory of evolution. Philosophical Transactions of the Royal Society of London. A, 71-110.

Examples

1
2
3
x=runif(10, min=0, max=1)
y=qmixt(x, phi=0.5, spec1="lnorm", arg1=list(meanlog=0.1,sdlog=0.2), spec2="exp", 
        arg2=list(rate=0.5))

Example output



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