qexp_mix: Quantile Function of a Exponential Mixture

View source: R/qexp_mix.R

Quantile Exponential MixtureR Documentation

Quantile Function of a Exponential Mixture

Description

Gives the quantile function value of a univariate Exponential Mixture.

Usage

qexp_mix(p, pi, rate, lower.tail = TRUE, log.p = FALSE)

Arguments

p

value or vector to apply on the quantile function.

pi

vector of mixture weights.

rate

vector of rate parameters.

lower.tail

logical; if TRUE (default). probabilites are P[X ≤ x], otherwise P[X > x].

log.p

logical; if FALSE (default), probabilities are expected in p, otherwise log[probabilities] are expected.

Author(s)

CASTRO, M. O.; MONTALVO, G. S. A.

Examples

## Quantile Function

## A value
qexp_mix(0.59, pi = c(0.6, 0.4), rate = c(1, 5))

## A vector
qexp_mix(c(0.25, 0.50, 0.75), pi = c(0.6, 0.4), rate = c(1, 5), lower.tail = FALSE)

matheuscastro43/finiteMix documentation built on March 30, 2022, 12:49 p.m.