Probabilities Normal Mixture | R Documentation |
Gives the distribution function value of a univariate Normal Mixture.
pnorm_mix(q, pi, mean, sd, lower.tail = TRUE, log.p = FALSE)
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]. |
log.p |
logical; if FALSE (default), probabilities are expected in p, otherwise log[probabilities] are expected. |
CASTRO, M. O.; MONTALVO, G. S. A.
## 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.