qweibull_mix: Quantile Function of a Weibull Mixture

View source: R/qweibull_mix.R

Quantile Weibull MixtureR Documentation

Quantile Function of a Weibull Mixture

Description

Gives the quantile function value of a univariate Weibull Mixture.

Usage

qweibull_mix(p, pi, shape, scale, lower.tail = TRUE, log.p = FALSE)

Arguments

p

value or vector to apply on the quantile function.

pi

vector of mixture weights.

shape

vector of shape parameters.

scale

vector of scale 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
qweibull_mix(0.59, pi = c(0.6, 0.4), shape = c(10, 18), scale = c(1, 2))

## A vector
qweibull_mix(c(0.25, 0.50, 0.75), pi = c(0.6, 0.4), shape = c(10, 18), scale = c(1, 2))

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