Description Usage Arguments Author(s) Examples
Gives the distribution function value of a univariate Normal mixture.
1 |
q |
value or vector to apply on the distribution 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]. |
CASTRO, M. O.; MONTALVO, G. S. A.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Distribution Function
## A value
pnorm_mix(12, pi = c(0.6, 0.4), mean = c(10, 18), sd = c(1, 2))
## A vector
pnorm_mix(c(-100, 10.96684, 100), pi = c(0.6, 0.4), mean = c(10, 18), sd = c(1, 2))
## Survival Function
## A value
pnorm_mix(12, pi = c(0.6, 0.4), mean = c(10, 18), sd = c(1, 2), lower.tail = FALSE)
## A vector
pnorm_mix(c(-100, 10.96684, 100), pi = c(0.6, 0.4), mean = c(10, 18), sd = c(1, 2),
lower.tail = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.