pweibull_mix: Distribution Function of a Weibull Mixture

View source: R/pweibull_mix.R

Probabilities Weibull MixtureR Documentation

Distribution Function of a Weibull Mixture

Description

Gives the distribution function value of a univariate Weibull Mixture.

Usage

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

Arguments

q

value or vector to apply on the distribution function.

pi

vector of mixture weights.

shape

shape parameters.

scale

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

## Distribution Function

## A value
pweibull_mix(4, pi = c(0.6, 0.4), shape = c(1, 3), scale = c(2, 4))

## A vector
pweibull_mix(c(4, 7, 11), pi = c(0.6, 0.4), shape = c(1, 3), scale = c(2, 4))


## Survival Function

## A value
pweibull_mix(2, pi = c(0.6, 0.4), shape = c(1, 3), scale = c(2, 4),
             lower.tail = FALSE)

## A vector
pweibull_mix(c(1, 2, 6), pi = c(0.6, 0.4), shape = c(1, 3), scale = c(2, 4),
             lower.tail = FALSE)

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