qnorm_mix: Quantile Function of a Normal Mixture

Description Usage Arguments Author(s) Examples

View source: R/qnorm_mix.R

Description

Gives the quantile function value of a univariate Normal mixture.

Usage

1
qnorm_mix(p, pi, mean, sd, lower.tail = TRUE)

Arguments

p

value or vector to apply on the quantile function.

pi

vector of mixture weights.

mean

vector of mixture means.

sd

vector of mixture standard desviations.

lower.tail

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

Author(s)

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

Examples

1
2
3
4
5
6
7
## Quantile Function

## A value
qnorm_mix(0.59, pi = c(0.6, 0.4), mean = c(10, 18), sd = c(1, 2))

## A vector
qnorm_mix(c(0.25, 0.50, 0.75), pi = c(0.6, 0.4), mean = c(10, 18), sd = c(1, 2))

matheuscastro43/mixGM documentation built on March 2, 2020, 12:19 a.m.